mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
apply _buoyancy and _splashEffects from probe
This commit is contained in:
parent
cbd87292e5
commit
0398a869f3
@ -48,7 +48,9 @@ public class AddPhysics : MonoBehaviour
|
||||
shape._collisionMode = Shape.CollisionMode.Detector;
|
||||
shape.radius = Radius;
|
||||
bodyGo.AddComponent<DynamicForceDetector>();
|
||||
bodyGo.AddComponent<DynamicFluidDetector>();
|
||||
var fluidDetector = bodyGo.AddComponent<DynamicFluidDetector>();
|
||||
fluidDetector._buoyancy = Locator.GetProbe().GetOWRigidbody()._attachedFluidDetector._buoyancy;
|
||||
fluidDetector._splashEffects = Locator.GetProbe().GetOWRigidbody()._attachedFluidDetector._splashEffects;
|
||||
|
||||
var impactSensor = bodyGo.AddComponent<ImpactSensor>();
|
||||
var audioSource = bodyGo.AddComponent<AudioSource>();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user