direction of setStandardForceCallback() ?? [solved]

nikhil

04-03-2007 05:43:49

Can somebody please tell me in what direction the standardForceCallback applies force?
I think it's applies it in the -ve Y- direction relative to the body and not the global -Y axis as it should. The gravity always point downwards no matter what the body orientation is, right?



I think it's applying it along the black arrow no matter what. whereas in second case it should be the blue arrow.

Regards

Nikhil

walaber

04-03-2007 22:54:22

hopefully this image will explain



addForce is a global force applied at the center of mass of the object.

addForceGlobal is a force in global space, applied to the object at a position also in global space (like for example the force of a fountain affecting a balloon)

addForceLocal is a force in local space, applied to a local offset on the body (like a jet thruster from an engine somewhere on a ship).

nikhil

05-03-2007 04:48:57

Hey Walaber..

thnks a lot.. I now understand it perfectly how they work.. You should probably have your post as a "sticky".. or added to some FAQ or something.

regards
nik