[Help] About impulse when collision happens

justin
Posts: 8
Joined: Fri Mar 04, 2011 1:19 pm

[Help] About impulse when collision happens

Post by justin »

hi, is getAppliedImpulse still working?
I used this method in my callbacks, but found this always returned 0.

I googled, and there's a saying in 2009 that this method is not used any more.
And I lookuped btPersistentManifold and found the impulse variables still exists.
So, I'm confused.

And my scenario using this method is to get the force (or impulse) between feet and ground when walking.
justin
Posts: 8
Joined: Fri Mar 04, 2011 1:19 pm

Re: [Help] About impulse when collision happens

Post by justin »

well, there's no impulse when collision HAPPENS, 'cause impulse are solved using contact-constraint. So the function should be called after SIMULATION.
Xuhai.Tang
Posts: 16
Joined: Wed Feb 23, 2011 4:54 pm

Re: [Help] About impulse when collision happens

Post by Xuhai.Tang »

justin wrote:hi, is getAppliedImpulse still working?
I used this method in my callbacks, but found this always returned 0.

I googled, and there's a saying in 2009 that this method is not used any more.
And I lookuped btPersistentManifold and found the impulse variables still exists.
So, I'm confused.

And my scenario using this method is to get the force (or impulse) between feet and ground when walking.

I have used getAppliedImpulse to get impulse. I am sure it is working.