- #1
tenseiga
- 6
- 0
hi guys, I'm making a game that requires a bit of physics...
I'm trying to implement a 2d physics engine which will have rotation as well as local forces i.e. forces that could rotate the object. The problem I'm facing is that if objects collide, their velocity at the point of collision can be calculated as linear velocity + tangential velocity due to rotation at that point. However i can't figure out how to transfer momentum from one object to another, since the momentum is mixed up as angular as well as lateral motion. For example the momentum from the angular motion of one object can be transferred as lateral momentum to anotehr object through a collision depending on to what degree the center of the target object is in line with the collision. However the equation of conservation of momentum requires initial velocity, final velocity and mass. there's no provision for angular momentum xfer.
The closest thing i can think of is taking the tangential velocity + lateral velocity at taht point as the velocity, and the mass + moment of inertia as M
thanks..
I'm trying to implement a 2d physics engine which will have rotation as well as local forces i.e. forces that could rotate the object. The problem I'm facing is that if objects collide, their velocity at the point of collision can be calculated as linear velocity + tangential velocity due to rotation at that point. However i can't figure out how to transfer momentum from one object to another, since the momentum is mixed up as angular as well as lateral motion. For example the momentum from the angular motion of one object can be transferred as lateral momentum to anotehr object through a collision depending on to what degree the center of the target object is in line with the collision. However the equation of conservation of momentum requires initial velocity, final velocity and mass. there's no provision for angular momentum xfer.
The closest thing i can think of is taking the tangential velocity + lateral velocity at taht point as the velocity, and the mass + moment of inertia as M
thanks..