Hi all!
I would like to know what are the formulas used to calculate the angular velocity of a circular body after a collision with a wall. I'm developing a Peggle-style game using Unity3D and at some point I need to simulate the physics by myself.
I managed to get a pretty decent approximation for the resulting linear velocity and position, but I'm still struggling to calculate the angular velocity. I found some formulas and tried them all, but the results I'm getting are nothing close to what Unity sets to the rigidbody if I let the physics engine do its own thing. I followed this http://www2.physics.umd.edu/~mfuhrer/course/spr02/AJP/AJP00482.pdf approach, implementing formula number 7 with no luck at all. Values are not even linearly dependent, so I assume it is not a matter of units of measurement. What am I missing here?
Thanks for your time 😉
I would like to know what are the formulas used to calculate the angular velocity of a circular body after a collision with a wall. I'm developing a Peggle-style game using Unity3D and at some point I need to simulate the physics by myself.
I managed to get a pretty decent approximation for the resulting linear velocity and position, but I'm still struggling to calculate the angular velocity. I found some formulas and tried them all, but the results I'm getting are nothing close to what Unity sets to the rigidbody if I let the physics engine do its own thing. I followed this http://www2.physics.umd.edu/~mfuhrer/course/spr02/AJP/AJP00482.pdf approach, implementing formula number 7 with no luck at all. Values are not even linearly dependent, so I assume it is not a matter of units of measurement. What am I missing here?
Thanks for your time 😉