#536 Check if physics object should be suspended on load

This commit is contained in:
Nick 2023-03-18 13:49:50 -04:00
parent 80e5f0c15e
commit 8f1954b40a

View File

@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;
using UnityEngine;
namespace NewHorizons.Components;
@ -66,6 +66,10 @@ public class AddPhysics : MonoBehaviour
owRigidbody.SetMass(Mass);
owRigidbody.SetVelocity(parentBody.GetPointVelocity(transform.position));
// #536 - Physics objects in bramble dimensions not disabled on load
// Should have it double check if it is meant to be suspended or not
owRigidbody.OnSectorOccupantsUpdated();
Destroy(this);
}