Reproduction steps:
1. Open the attached “IN-58119 Rigidbody Override Bug - 2022.zip“ project
2. Open the “SampleScene”
3. Enter Play mode
Expected result: “Max Vertical” and “Max Mag Vertical” values displayed in the Game view increase to about 5
Actual result: “Max Vertical” and “Max Mag Vertical” values displayed in the Game view increase to about 20-30
Reproducible with: 2022.1.0a14, 2022.3.12f1, 2023.1.19f1, 2023.2.0b16, 2023.3.0a12
Not reproducible with: 2021.3.31f1, 2022.1.0a13
Reproduced on: Windows 11 Pro (22H2)
Not reproduced on: No other environment tested
Notes:
- Reproducible in Player
- Reproducible in a new project
- Perform the same reproduction steps with the attached “IN-58119 Rigidbody Override - 2021 No Repro.zip“ project to see the expected result
- The “Rigidbody Override (Script)” component in the Inspector for the “Hand” and “Gun” GameObjects is responsible for overriding their Rigidbody component values
- In 2023.2.0b16 and 2023.3.0a12 Unity Editor versions, a Physics.Physx error is logged in the Console when entering Play mode
Full error message (2023.2.0b16 and 2023.3.0a12):
[Physics.PhysX] Command Body::WakeUp is not supported on PxRigidDynamic instances with physx::PxRigidBodyFlag::eKINEMATIC flag set.
UnityEngine.Physics:set_gravity (UnityEngine.Vector3)
PhysicTest.TestTimeManager:Awake () (at Assets/Scripts/TestTimeManager.cs:17)