Yeah, what you are doing is beyond my knowledge. I have done lots of physics simulations for fun, but most of them were 2D. Some had collision detection, but not with irregular polygons/polyhedrals.
I have wanted to try writing a simulation similar to yours, but I won't have enough free...
So, first of all, if our object has angular velocity W, then the angle which the object will rotate during the timeStep will be:
theta = W * timeStep
Now, lets say that the object's center of mass is at 0,0. And, lets say that a point on the edge of the object is at X1,Y1. Lets call this...
Ok, I attached the formula that they come up with in that document. I am just curious how it is derived, because it is somewhat simpler than the formulas I can come up with. Lol, in the document they say, "From simple geometry." I wouldn't really call it simple though.
You have to look at what happens to the height of the center of gravity when the angle theta is changed. By theta, I mean the angle between a line shooting out of the top of the egg, and the ground. It is 90 degrees when the egg is balancing on end. Anyway, consider a small change in the...
I am working on programming a simulation/model of a piston engine (steam, gas, etc). I have run into some trouble with the geometry. I need to calculate the torque T on the crankshaft as a function of the force F on the piston, the crankshaft angle theta, the connecting rod length L, and the...