addphysics: set angular velocity too

This commit is contained in:
JohnCorby 2023-08-10 00:11:50 -07:00
parent caca976e0c
commit 24482174f1

View File

@ -73,6 +73,7 @@ public class AddPhysics : MonoBehaviour
transform.parent = bodyGo.transform; transform.parent = bodyGo.transform;
owRigidbody.SetMass(Mass); owRigidbody.SetMass(Mass);
owRigidbody.SetVelocity(parentBody.GetPointVelocity(transform.position)); owRigidbody.SetVelocity(parentBody.GetPointVelocity(transform.position));
owRigidbody.SetAngularVelocity(parentBody.GetAngularVelocity());
// #536 - Physics objects in bramble dimensions not disabled on load // #536 - Physics objects in bramble dimensions not disabled on load
// sectors wait 3 frames and then call OnSectorOccupantsUpdated // sectors wait 3 frames and then call OnSectorOccupantsUpdated