mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
#536 Check if physics object should be suspended on load
This commit is contained in:
parent
80e5f0c15e
commit
8f1954b40a
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user