How to Move the object "Natural" by C++?
I want to move some object to move "Natural".
The Acceleration graph of the "Natural Move" is like this:
(x: Time, y: Acceleration)
Than, the graph of velocity and displacement would be following graph:
I implemented this movement using SetActorLocaion() function like this:
This code works pretty well, but It's just a trickery. The object doesn't have velocity but it just teleported by computed location.
So I want to make the object using movement vector. How to implement it??
Take a look at the floating pawn movement component. Use SafeMoveUpdatedComponent to move your component through the world, this handels hitting other level geometry for you. At the end of your update call UpdateComponentVelocity(). This ensures that your actor has the correct velocity if you need it afterwards
answered Jul 11 '17 at 10:46 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here