_layerMask

This commit is contained in:
JohnCorby 2023-04-25 20:08:51 -07:00
parent 262fc1687e
commit 6244fb70d4

View File

@ -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>();