Sphere-AABB and Torque
By Aaron Holowienka
Last week I successfully got two spheres to collide and bounce of each other. My next step is to implement sphere to AABB collision to allow the sphere to collide with stationary cubes in the world and eventually the player. The hardest part about this is going to be re organizing my physics system a little to allow for objects of different types. As of now, every object is a sphere, so I have to enable objects to have different types of colliders and check the collision accordingly. My second task for this week is going to be calculating torque for the spheres. Right now, the spheres are bouncing around and colliding, but not spinning at all. This looks entirely unrealistic. I do not know how to actually do this, so my first step in accomplishing torque is going to be a lot of research. I anticipate this creating a lot more complexity to my physics calculations and probably requiring a few more variables to be stored per rigid body.
Comments
Post a Comment