Local Force

Hi @all,

how do i apply localy a force to an object?



PhysicsNode.applyImpulse() (use in simpleUpdatePhysics()) or PhysicsNode.applyContinuousForce()

Cheers,

Normen

Sry, i meant: the object should move to left from his local orientation.



anther question:

whats the difference of local and global translation?

local is the translation from the parent node and global from the wolrdcenter, am i right?

Yes. So you have to get the current world rotation of your spatial and apply it to the force vector.

Thank you :slight_smile: