Applying force from world point

rusty
Posts: 25
Joined: Fri Sep 19, 2008 10:23 am

Applying force from world point

Post by rusty »

I'm new to using Bullet, having only just started today and despite looking around in the forum and wiki, I can't seem to find the info I need.

I want to be able to apply a positioned force from a position given in work space, and want to know how I can get the neccessary info from the rigidbody to transform the point into local space (it feels odd mixing world and local frames, but never mind).

My guess is that I can just call getCenterOfMassPosition() and subtract that from my world point, giving me the relative position required (since it performs and outer product with the force vector director wil rel_pos).

Thanks in advance for your help!