Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Working on a general physics engine

  1. Apr 12, 2008 #1
    I'm working on a general physics engine for fun.

    Objects have two velocity vectors: rotation and translation. When a collision is detected, objects are told the point of collision (p) and the object that they hit.

    The object decomposes its translational velocity into the component pointing towards p and the orthogonal component. It removes the former component from its own translational velocity and applies the component to the object that it hit. (Scaled, of course, by elasticity, etc)

    This goes on to calculate equal and opposite reactions, etc. to simulate physics.

    However, I don't know what to do with the rotational velocity when object a hits object b. Say that object a is spinning with a rotational velocity of r, and it hits object b at point p (which is direction u from a's center of mass). How is r applied to b?
     
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you help with the solution or looking for help too?
Draft saved Draft deleted



Similar Discussions: Working on a general physics engine
  1. General physics (Replies: 5)

  2. General physics (Replies: 2)

  3. General Physics (Replies: 7)

  4. General physics (Replies: 2)

  5. General physics (Replies: 9)

Loading...