• Advertisement
Sign in to follow this  

Angular velocity in direction of linear velocity

This topic is 1532 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi there!

My situation is the following:

I have a ball, which I can give a kick. When it hits one of of the reflectors in our world I would like it to bounce off at the exact angle it came in. This is working pretty fine so far, but there is the problem of angular velocity.

After the ball hits a reflector it sometimes starts spinning and changes its direction. Therefore I could just set the angular velocity after hitting a reflector to zero, but since this stops the spinning completely it looks very unrealistic.

What I'm looking for now, is a solution of how to get the ball to spin into the exact direction it is reflected to.

Has someone maybe done something similar or just knows what do do here?

Help would be very appreciated. icon_smile.gif

Share this post


Link to post
Share on other sites
Advertisement

I'm not familiar with the behavior you describe. In my tests, balls get bounced correctly and always rolled correctly. In general, you should manipulate dynamic objects by only injecting forces and not by direct velocity manipulation. And you shouldn't have the need to make it bounce manually... are you using kinematics?

Share this post


Link to post
Share on other sites


Has someone maybe done something similar or just knows what do do here?

 

 

http://en.wikipedia.org/wiki/Angular_velocity

 

690a5ab8498ef4e110a6bd75106f3562.png

 

Where:

v = new (or old) linear velocity

r = contact point  -  center of gravity  // If you don't have this info, try using r = contact normal

w = new angular velocity

 

(I think the eq is backwards.  Just negate it or reverse the cross product.  Also, you may need a coefficient of restitution.)

           

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement