Adding force to object [C++]

Hi, i working on my custom vehicle physics and i need to add force to physics object, how i can do this in c++ and blueprint?

Hey -

In blueprints you would want to use either the Add Force or Add Force at Location nodes. The code for both of these functions in located in PrimitiveComponent.h if you want to use them from C++.

Cheers

In blueprint i test Add Force in physics actor and this dont work, you can show me simple screnshoot witch simple use this function?

This screenshot shows a simple blueprint setup where the static mesh is a cube. With the static mesh set to simulate physics, this will cause the cube to slowly rise.

66540-addforce.png