mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Add comments
This commit is contained in:
parent
39324e00b0
commit
0bcaa3f7ef
@ -63,10 +63,14 @@ namespace NewHorizons.Builder.General
|
||||
objectImpactAudio._maxPitch = 0.6f;
|
||||
objectImpactAudio._impactSensor = impactSensor;
|
||||
|
||||
// For some reason when originally testing, not doing MakeKinematic caused the body to not move relative to the player character
|
||||
// It seems that turning it on and then off makes it actually work properly
|
||||
owRigidBody.MakeNonKinematic();
|
||||
owRigidBody.DisableKinematicSimulation();
|
||||
|
||||
// Should make this number changeable
|
||||
// Should make this number changeable, if anybody ever asks
|
||||
// For some reason, setting this on the exact same frame as it is created doesn't work.
|
||||
// I imagine something strange is happening on Awake/Start, hence the delay
|
||||
Delay.FireOnNextUpdate(() => owRigidBody.SetMass(0.001f));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user