mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
_layerMask
This commit is contained in:
parent
262fc1687e
commit
6244fb70d4
@ -46,6 +46,7 @@ public class AddPhysics : MonoBehaviour
|
||||
bodyGo.AddComponent<SphereCollider>().radius = Radius;
|
||||
var shape = bodyGo.AddComponent<SphereShape>();
|
||||
shape._collisionMode = Shape.CollisionMode.Detector;
|
||||
shape._layerMask = (int)(Shape.Layer.Default | Shape.Layer.Gravity);
|
||||
shape._radius = Radius;
|
||||
bodyGo.AddComponent<DynamicForceDetector>();
|
||||
var fluidDetector = bodyGo.AddComponent<DynamicFluidDetector>();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user