mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Make physics bodies support parenting
This commit is contained in:
parent
28df733eab
commit
e536ab2d23
@ -33,6 +33,7 @@ public class AddPhysics : MonoBehaviour
|
||||
|
||||
var bodyGo = new GameObject($"{name}_Body");
|
||||
bodyGo.SetActive(false);
|
||||
bodyGo.transform.parent = transform.parent;
|
||||
bodyGo.transform.position = transform.position;
|
||||
bodyGo.transform.rotation = transform.rotation;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user