Unity Issue Tracker - Rigidbody.angularVelocity.magnitude differs between versions when using "Rigidbody.AddTorque" with "ForceMode.VelocityChange"
Closed
UUM-135903
Rigidbody.angularVelocity.magnitude differs between versions when using "Rigidbody.AddTorque" with "ForceMode.VelocityChange"
Unity: 3D Physics
As Designed
6.6.X
6.5.X
6.4.X
6.3.X
6.0.X
2022.3.X
Upon investigation the forces being generated in 6.X versions are correct.
Cheers,
AlexRvn.
Reproduction steps:
1. Open the attached "IN-134949_AddTorque.zip" project
2. Open the "Assets/Scene.unity" scene
3. Enter Play mode
4. Press Space
5. Open the Console window
6. Scroll to the top
7. Find the log entry "AddTorque VelocityChange:" and look at the second subsequent "Torque:" log entry
Actual result: The second "Torque:" value is "1.45 rad/s" (or "2.17 rad/s" in some cases)
Expected result: The second "Torque:" value is "2.86 rad/s"
Reproducible with: 2022.2.0a11, 2023.1.0a14, 2022.3.73f1
Not reproducible with: 6000.0.69f1, 6000.3.10f1, 6000.4.0b11, 6000.5.0a7
Could not test with: 2022.2.0a10 (CS246 error, no definition of “SimulationMode”)
Fixed in: 2023.1.0a15
Reproduced on: Windows 11
Not reproducible on: No other environments tested
Prioritise and Follow this issue
Have a workaround or additional info about this issue?