I want to keep the forward of a projectile pointing in the direction of movement, eg. a missile bouncing off of something should still point nose-forward to the bounce motion.
How do I get the angle of momentum to update the mesh(es) to point in line with that as their new forward?
If not, then setting the rotation from forward vector would, ofc, work more than fine. May be even preferable, depending on how often we need to adjust it. If it’s a singular event, only after the impact, setting the rotation manually once may work just fine. If you have other forces acting on the projectile, you’ll need to do it more often.
First thing I tried. It gives a rotator that is constant across iterations but has nothing to do with the actual momentum of the projectile.
Eg. if I have 5 moving projectiles in the scene moving in different directions, the result for all of them points in the same direction but is only pointing in the direction of the motion of any of them by chance.
The hierarchy is not set up right atm. If you’re simulating physics, ensure the simulating element is at the root - drag it there. This is critical for many reasons.
Currently the velocity you’re sampling is 0 at all times. You’re adding force to the component but the actual actor sits absolutely still. Print the velocity.
For example, this box is simulating physics, it fell. But the actor is still in the air because the root was not simulating physics:
Technically nothing stops you from not having it at the root for as long as you’re aware of this behaviour. Imagine an actor with 10 simulating static meshes. What is the actor’s location? Is it the average location of all the meshes? Nah, its location is still at the root.