//Collision leaving void OnCollisionExit(Collision collision) { ForceManager.StopEnvironmentForce(forceIndex); Debug.Log("Force stoped with index " + forceIndex); }
private void StopForces() { ForceManager.StopEnvironmentForce(SPRING_INDEX); ForceManager.StopEnvironmentForce(FRICTION_INDEX); }