How do I set up rigid body rotation towards a target vector?
I am planning to make a space ship that controlled by the mouse similar to a strategy game where you click somewhere and the actor is trying to get there. To get a more or less realistic look I want to use rigid body physics to make the ship rotate nicely towards the target direction. Before I do all the work by myself I was searching the source for something similar that is already part of the engine and can be used for my purpose. The source however is huge and I might have overlooked something. Therefore I want to ask here if there is a feature somewhere that could be useful in this case. Maybe something related to the AI pathfinding.
I would be grateful for any helpful comments.
Take a look at the Top Down templates, whether in Blueprints or Code. The project uses a Nav Mesh and click-to-move controls, with a smooth turn transition for the character, which sounds like exactly what you're looking for.
Hope that helps!
answered May 14 '14 at 05:51 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here