ReactPhysics3D
v0.10.2
C++ Physics engine library
|
This class represents a contact point between two colliders of the physics world. More...
#include <include/reactphysics3d/collision/CollisionCallback.h>
Public Member Functions | |
ContactPoint (const ContactPoint &contactPoint)=default | |
Copy constructor. | |
ContactPoint & | operator= (const ContactPoint &contactPoint)=delete |
Assignment operator. | |
~ContactPoint ()=default | |
Destructor. | |
decimal | getPenetrationDepth () const |
Return the penetration depth. | |
const Vector3 & | getWorldNormal () const |
Return the world-space contact normal. | |
const Vector3 & | getLocalPointOnCollider1 () const |
Return the contact point on the first collider in the local-space of the first collider. | |
const Vector3 & | getLocalPointOnCollider2 () const |
Return the contact point on the second collider in the local-space of the second collider. | |
This class represents a contact point between two colliders of the physics world.
RP3D_FORCE_INLINE const Vector3 & reactphysics3d::CollisionCallback::ContactPoint::getLocalPointOnCollider1 | ( | ) | const |
Return the contact point on the first collider in the local-space of the first collider.
RP3D_FORCE_INLINE const Vector3 & reactphysics3d::CollisionCallback::ContactPoint::getLocalPointOnCollider2 | ( | ) | const |
Return the contact point on the second collider in the local-space of the second collider.
RP3D_FORCE_INLINE decimal reactphysics3d::CollisionCallback::ContactPoint::getPenetrationDepth | ( | ) | const |
Return the penetration depth.
RP3D_FORCE_INLINE const Vector3 & reactphysics3d::CollisionCallback::ContactPoint::getWorldNormal | ( | ) | const |
Return the world-space contact normal.