Adding Torque to a simple physics simulation

Click For Summary
SUMMARY

This discussion focuses on simulating torque in a physics engine for a rectangular body. The user correctly identifies that torque is calculated using the formula Torque = Vertice:cross(Impulse) and that angular acceleration is derived from Torque/Inertia. However, the user incorrectly equates angular velocity with Euler angles, which are distinct concepts. The discussion clarifies that angular velocity is the first derivative of an angle with respect to time, while angular acceleration is a vector aligned with the axis of rotation. Additionally, it emphasizes the importance of conserving linear and angular momentum when determining the effects of impulse on velocity and angular velocity.

PREREQUISITES
  • Understanding of torque calculations in physics simulations
  • Familiarity with angular velocity and angular acceleration concepts
  • Knowledge of rigid body dynamics and Euler equations
  • Basic principles of linear and angular momentum conservation
NEXT STEPS
  • Research the Euler equations of rigid body dynamics
  • Learn about the conversion between axis-angle representation and Euler angles
  • Study impulse and its effects on linear and angular momentum
  • Explore physics simulation frameworks that implement torque calculations
USEFUL FOR

Game developers, physics simulation engineers, and students studying dynamics who are looking to understand torque and angular motion in simulations.

EricMiddleton
Messages
3
Reaction score
0
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 have read, the angular acceleration is a vector with the direction as the axis of rotation and the magnitude is the angle, but my angular velocity is actually a euler angle. Please correct me if I am wrong in my understanding. I just need to convert the axis-angle into a regular euler angle but I can't find how to do that. Also, How do I determine how much of the implulse is added to the velocity and how much is added to the angular velocity? Thanks for any help you can provide.
 
Physics news on Phys.org
It looks like you are confusing and conflating various concepts.
EricMiddleton said:
The problem is that, from what I have read, the angular acceleration is a vector with the direction as the axis of rotation ...
That much is correct. The vector representing the angular acceleration is along the axis of rotation.
EricMiddleton said:
... and the magnitude is the angle ...
This is where you start diverging from what is the case. The magnitude of angular velocity is not an angle, it is the second derivative of an angle with respect to time.
EricMiddleton said:
... but my angular velocity is actually a euler angle.
An angular velocity is not an Euler angle. An angular velocity is the first derivative of an angle with respect to time. I suspect you have a question about a rotating rigid body about an axis that changes direction in which case the Euler equations of rigid body dynamics would come into play. I suspect that you don't know how to ask your question properly.
EricMiddleton said:
Also, How do I determine how much of the implulse is added to the velocity and how much is added to the angular velocity? Thanks for any help you can provide.
You conserve linear and angular momentum. If the body is initially at rest, and the body receives impulse ##\vec J## at position ##\vec r## from its center of mass, the initial linear momentum is ##\vec P_i=\vec J## and the initial angular momentum about the CM is ##\vec L_i=\vec r \times \vec J##.
 

Similar threads

  • · Replies 49 ·
2
Replies
49
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 60 ·
3
Replies
60
Views
7K
  • · Replies 138 ·
5
Replies
138
Views
9K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K