- #1
tom_backton
- 8
- 0
Torque in Physics Simulation
Let's say there is flat floor at y=0 . There is a rectangle of which two vertices are at (0,0) and (w,h). There is a ball in mid-air. Someone let's it fall and the ball falls until it hits the (w,h) vertex of the rectangle. The push-back force is very small and can be ignored. I suppose the ball will be rotating around the vertex until it is able to move downwards at stop when it reaches the floor to the right of the rectangle.
The question: I'm writing a physics simulation program. It each "step" of the simulation the collision can be recalculated and as long as there is a collision, it it obvious arounf which point the ball spins. But what happens when the collision stops? Does the ball just move according to linear mechanics only and spin around itself?
And what happens in this case: there is a ball with the center at (0,h). (x,y+h) is a poijt on the circumference of the ball. A force F is applied to this point. How do I conbine r and F for this force with the existing linear and angular speed?
Another question: ball1 and ball2 are identical. Same mass, same radius. Both have the same speed - same magnitude and same direction. The difference is that ball1 had torque few steps ago. Could this torque affect the ball1's route (besides making the ball spin) even though at the current step the velocities are equal?
I never learned these things in school (I would if they taught them!) and now I need them for the physics simulation program...
Let's say there is flat floor at y=0 . There is a rectangle of which two vertices are at (0,0) and (w,h). There is a ball in mid-air. Someone let's it fall and the ball falls until it hits the (w,h) vertex of the rectangle. The push-back force is very small and can be ignored. I suppose the ball will be rotating around the vertex until it is able to move downwards at stop when it reaches the floor to the right of the rectangle.
The question: I'm writing a physics simulation program. It each "step" of the simulation the collision can be recalculated and as long as there is a collision, it it obvious arounf which point the ball spins. But what happens when the collision stops? Does the ball just move according to linear mechanics only and spin around itself?
And what happens in this case: there is a ball with the center at (0,h). (x,y+h) is a poijt on the circumference of the ball. A force F is applied to this point. How do I conbine r and F for this force with the existing linear and angular speed?
Another question: ball1 and ball2 are identical. Same mass, same radius. Both have the same speed - same magnitude and same direction. The difference is that ball1 had torque few steps ago. Could this torque affect the ball1's route (besides making the ball spin) even though at the current step the velocities are equal?
I never learned these things in school (I would if they taught them!) and now I need them for the physics simulation program...
Last edited: