addImpulse question

Epimetheus

01-03-2006 16:07:36

what does addImpulse do thats different from addForce, and what does the two variables mean? the first one is direction but only in object space? How can i get the same function but in worldspace?

walaber

01-03-2006 16:40:08

addImpulse is in global space.

you give it a global point on the object, and then the other vector is the global change in velocity you want to happen at that point.

an Impulse represents a direct change in the velocity, not the acceleration of a point on an object.

used with care Impulses can make excellent bullet-hit effects, cue striking a billiard ball, etc.

Epimetheus

01-03-2006 20:57:27

oh cool