Set/Add Torque/Force Have no effect.

AntonyCoder

02-04-2006 00:02:09

Anyone know why both varients of torque and force manipulation have no visible effect on my bodies?
Addimpulse has a clearly visible to be expected effect.

Also is there a way to control the rotational force along pitch,yaw,roll like you can in ode?

Any tips for fast accurate turning of a newton body? It turns too much and feels stiff at lower speeds.

walaber

02-04-2006 22:33:09

set\add force/torque must be called in a "ForceAndTorqueCallback" function, because they must be applied at the right time in the Newton Update() flow.

see the demos for examples of this.... or look at the source code for Body::setStandardForceCallback().

AntonyCoder

03-04-2006 15:10:21

Thanks, I looked but couldn't find any mention of callbacks other than the collision callbacks.(Which I've implemented sucesfully)

What demo in paticular were you on about?

I'll go check out the source in the mean time.