mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
check null sector, update comment
This commit is contained in:
parent
8f1954b40a
commit
dbf01e354b
@ -67,8 +67,11 @@ public class AddPhysics : MonoBehaviour
|
||||
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();
|
||||
// sectors wait 3 frames and then call OnSectorOccupantsUpdated
|
||||
// however we wait .1 real seconds which is longer
|
||||
// so we have to manually call this
|
||||
if (owRigidbody._simulateInSector != null)
|
||||
owRigidbody.OnSectorOccupantsUpdated();
|
||||
|
||||
Destroy(this);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user