public void AddForce(Vector3 force, ForceMode forceMode = ForceMode.Force) { int forceModeInt = (int)forceMode; if (forceMode == ForceMode.Acceleration) { forceModeInt = 3; } physXForce.FromVector(force); PhysXLib.AddForce(physXBody, physXForce, forceModeInt); }