Velocity change callback

Phillemann
Posts: 9
Joined: Tue Feb 03, 2009 6:36 pm

Velocity change callback

Post by Phillemann »

Hi

Is there a callback available for the velocity change of an object? I'm using motion states to get a callback when the position is changed but I also need one for the velocity. Or is there another method for detecting when the velocity of a body changes (apart from iterating through all bodies and comparing velocities before/after the frame)?