Hi,
All i’m trying to do is apply a force to an object based on rotation.
So if the object is upright then the force will apply from the bottom and it will go directly up.
if the object is rotated 45 degrees, then the force will push it in a 45 degree angle and so on.
I tried to object:applyForce(0,-10) on every frame but that just moves it up regardless of the rotation direction.
I think its just a function i’m not using that I should be but dont know which one.
Thanks
Kevin