diff --git a/NewHorizons/Components/AddPhysics.cs b/NewHorizons/Components/AddPhysics.cs index d4c0b2e0..7cbc20cb 100644 --- a/NewHorizons/Components/AddPhysics.cs +++ b/NewHorizons/Components/AddPhysics.cs @@ -44,8 +44,13 @@ public class AddPhysics : MonoBehaviour bodyGo.tag = "DynamicPropDetector"; // this collider is not included in groups. oh well bodyGo.AddComponent().radius = Radius; + var shape = bodyGo.AddComponent(); + shape._collisionMode = Shape.CollisionMode.Detector; + shape.radius = Radius; bodyGo.AddComponent(); - bodyGo.AddComponent(); + var fluidDetector = bodyGo.AddComponent(); + fluidDetector._buoyancy = Locator.GetProbe().GetOWRigidbody()._attachedFluidDetector._buoyancy; + fluidDetector._splashEffects = Locator.GetProbe().GetOWRigidbody()._attachedFluidDetector._splashEffects; var impactSensor = bodyGo.AddComponent(); var audioSource = bodyGo.AddComponent(); @@ -82,4 +87,4 @@ public class AddPhysics : MonoBehaviour { Gizmos.DrawWireSphere(transform.position, Radius); } -} \ No newline at end of file +}