Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Collision response forces in rigid body simulation


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
20 replies to this topic

#21 EWClay   Members   -  Reputation: 659

Like
1Likes
Like

Posted 18 February 2013 - 06:22 AM

Where you find minb-maxa, you need the check the opposite as well, mina-maxb, and take the smallest, because the overlap can be either way. The axis would flip as well.

In the first function, you can get the extents without looking at all four corners. Find the dot product of the axis with the chassis position first, without adding the corner. Then the size on that axis is width*abs(dot(box x, axis)) + height*abs(dot(box y, axis)).

Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS