move constraints checks to RigidBody

This commit is contained in:
nothingTVatYT
2024-01-06 12:40:24 +01:00
parent 284c971ec0
commit a24a9d2094
3 changed files with 47 additions and 27 deletions

View File

@@ -430,6 +430,12 @@ public:
/// <param name="result">The result point on the rigidbody shape that is closest to the specified location.</param>
API_FUNCTION() void ClosestPoint(const Vector3& position, API_PARAM(Out) Vector3& result) const;
/// <summary>
/// Moves and rotates the rigidbody in world space within the limits of defined constraints.
/// </summary>
/// <param name="translation">The translation vector.</param>
/// <param name="rotation">The rotation quaternion.</param>
API_FUNCTION() void AddMovement(const Vector3& translation, const Quaternion& rotation) override;
public:
/// <summary>
/// Occurs when a collision start gets registered for this rigidbody (it collides with something).