diff --git a/Source/Engine/Physics/Physics.h b/Source/Engine/Physics/Physics.h index 275ae9cb9..71e172699 100644 --- a/Source/Engine/Physics/Physics.h +++ b/Source/Engine/Physics/Physics.h @@ -288,7 +288,7 @@ public: /// The layer mask used to filter the results. /// If set to true triggers will be hit, otherwise will skip them. /// True if capsule hits an matching object, otherwise false. - API_FUNCTION() static bool CapsuleCast(const Vector3& center, const float radius, const float height, const Vector3& direction, const Quaternion& rotation = Quaternion::Identity, float maxDistance = MAX_float, uint32 layerMask = MAX_uint32, bool hitTriggers = true); + API_FUNCTION() static bool CapsuleCast(const Vector3& center, float radius, float height, const Vector3& direction, const Quaternion& rotation = Quaternion::Identity, float maxDistance = MAX_float, uint32 layerMask = MAX_uint32, bool hitTriggers = true); /// /// Performs a sweep test against objects in the scene using a capsule geometry. @@ -303,7 +303,7 @@ public: /// The layer mask used to filter the results. /// If set to true triggers will be hit, otherwise will skip them. /// True if capsule hits an matching object, otherwise false. - API_FUNCTION() static bool CapsuleCast(const Vector3& center, const float radius, const float height, const Vector3& direction, API_PARAM(Out) RayCastHit& hitInfo, const Quaternion& rotation = Quaternion::Identity, float maxDistance = MAX_float, uint32 layerMask = MAX_uint32, bool hitTriggers = true); + API_FUNCTION() static bool CapsuleCast(const Vector3& center, float radius, float height, const Vector3& direction, API_PARAM(Out) RayCastHit& hitInfo, const Quaternion& rotation = Quaternion::Identity, float maxDistance = MAX_float, uint32 layerMask = MAX_uint32, bool hitTriggers = true); /// /// Performs a sweep test against objects in the scene using a capsule geometry. @@ -318,8 +318,8 @@ public: /// The layer mask used to filter the results. /// If set to true triggers will be hit, otherwise will skip them. /// True if capsule hits an matching object, otherwise false. - API_FUNCTION() static bool CapsuleCastAll(const Vector3& center, const float radius, const float height, const Vector3& direction, API_PARAM(Out) Array& results, const Quaternion& rotation = Quaternion::Identity, float maxDistance = MAX_float, uint32 layerMask = MAX_uint32, bool hitTriggers = true); - + API_FUNCTION() static bool CapsuleCastAll(const Vector3& center, float radius, float height, const Vector3& direction, API_PARAM(Out) Array& results, const Quaternion& rotation = Quaternion::Identity, float maxDistance = MAX_float, uint32 layerMask = MAX_uint32, bool hitTriggers = true); + /// /// Checks whether the given box overlaps with other colliders or not. /// @@ -344,7 +344,7 @@ public: /// /// Checks whether the given capsule overlaps with other colliders or not. /// - /// The sphere center. + /// The capsule center. /// The radius of the capsule. /// The height of the capsule, excluding the top and bottom spheres. /// The layer mask used to filter the results. @@ -413,7 +413,7 @@ public: /// /// Finds all colliders touching or inside of the given sphere. /// - /// The sphere center. + /// The capsule center. /// The radius of the capsule. /// The height of the capsule, excluding the top and bottom spheres. /// The result colliders that overlap with the given sphere. Valid only when method returns true.