public void AddForceAtPosition(Vector3 force, Vector3 position, ForceMode forceMode) { int forceModeInt = (int)forceMode; if (forceMode == ForceMode.Acceleration) { forceModeInt = 3; } physXForce.FromVector(force); physXForcePos.FromVector(position); PhysXLib.AddForceAtPosition(physXBody, physXForce, physXForcePos, forceModeInt); }
public void AddGhostImpulse(Vector3 force, Vector3 position) { physXForce.FromVector(force); physXForcePos.FromVector(position); PhysXLib.AddForceAtPosition(ghostBody, physXForce, physXForcePos, (int)ForceMode.Impulse); }