I am trying to simulate a single rectangular body but I am having issues with Torque. I have an angular velocity variable (AngVel) and I have my torque calculations (Torque = Vertice:cross(Impulse)) and I get the angular acceleration (AngAccel = Torque/Inertia). The problem is that, from what I...
I'm currently writing the prototype in a game called Garry's Mod using an an extension called wiremod, for ease of debugging. The language is called Expression2, and its very easy to understand.
T = 1/33 #This code is updated every tick (33 times per second)
Acceleration = vec(0, 0...
I am working on a simple physics engine right now and when the object eventually comes to a rest, it starts 'twitching' (moving up/down slightly very quickly) because gravity pulls it through the floor, and then the collision detection pops it back up. Here is the order in which my simulation...