Add comments

This commit is contained in:
Nick 2023-08-10 00:31:50 -04:00
parent 39324e00b0
commit 0bcaa3f7ef

View File

@ -63,10 +63,14 @@ namespace NewHorizons.Builder.General
objectImpactAudio._maxPitch = 0.6f; objectImpactAudio._maxPitch = 0.6f;
objectImpactAudio._impactSensor = impactSensor; 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.MakeNonKinematic();
owRigidBody.DisableKinematicSimulation(); 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)); Delay.FireOnNextUpdate(() => owRigidBody.SetMass(0.001f));
} }