![]() |
ReactPhysics3D
v0.10.2
C++ Physics engine library
|
This structure contains the information about a raycast hit. More...
#include <include/reactphysics3d/collision/RaycastInfo.h>
Public Member Functions | |
| RaycastInfo () | |
| Constructor. | |
| ~RaycastInfo ()=default | |
| Destructor. | |
| RaycastInfo (const RaycastInfo &raycastInfo)=delete | |
| Deleted copy constructor. | |
| RaycastInfo & | operator= (const RaycastInfo &raycastInfo)=delete |
| Deleted assignment operator. | |
Public Attributes | |
| Vector3 | worldPoint |
| Hit point in world-space coordinates. | |
| Vector3 | worldNormal |
| Surface normal at hit point in world-space coordinates. | |
| decimal | hitFraction |
| Fraction distance of the hit point between point1 and point2 of the ray The hit point "p" is such that p = point1 + hitFraction * (point2 - point1) | |
| int | triangleIndex |
| Hit triangle index (only used for triangles mesh and -1 otherwise) | |
| Body * | body |
| Pointer to the hit collision body. | |
| Collider * | collider |
| Pointer to the hit collider. | |
This structure contains the information about a raycast hit.