This commit is contained in:
TerrificTrifid 2023-04-25 22:07:11 -05:00
parent 6a8299f4cc
commit 262fc1687e

View File

@ -46,7 +46,7 @@ public class AddPhysics : MonoBehaviour
bodyGo.AddComponent<SphereCollider>().radius = Radius;
var shape = bodyGo.AddComponent<SphereShape>();
shape._collisionMode = Shape.CollisionMode.Detector;
shape.radius = Radius;
shape._radius = Radius;
bodyGo.AddComponent<DynamicForceDetector>();
var fluidDetector = bodyGo.AddComponent<DynamicFluidDetector>();
fluidDetector._buoyancy = Locator.GetProbe().GetOWRigidbody()._attachedFluidDetector._buoyancy;