mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Fix sectors being rotated on tidally locked bodies (#870)
## Bug fixes - Fixed sectors being rotated on tidally locked bodies
This commit is contained in:
commit
803a6c2404
@ -11,8 +11,8 @@ namespace NewHorizons.Builder.General
|
||||
{
|
||||
var sectorGO = new GameObject("Sector");
|
||||
sectorGO.SetActive(false);
|
||||
sectorGO.transform.parent = planetBody.transform;
|
||||
sectorGO.transform.localPosition = Vector3.zero;
|
||||
// Have to use set parent method without keeping world position to Fix sectors being rotated on tidally locked bodies #870
|
||||
sectorGO.transform.SetParent(planetBody.transform, false);
|
||||
|
||||
var SS = sectorGO.AddComponent<SphereShape>();
|
||||
SS.SetCollisionMode(Shape.CollisionMode.Volume);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user