|
Kemena3D
|
Result of a physics raycast query. More...
#include <kphysicsmanager.h>

Public Attributes | |
| bool | hit = false |
| true if the ray struck a body. | |
| float | distance = 0.0f |
| Distance from the ray origin to the hit point. | |
| kVec3 | hitPoint |
| World-space position of the intersection. | |
| kVec3 | hitNormal |
| World-space surface normal at the hit point. | |
| kPhysicsObject * | object = nullptr |
| The physics body that was hit (manager-owned). | |
Result of a physics raycast query.
Returned by kPhysicsManager::raycast(). Check hit before accessing any other field.
| float kemena::kPhysicsRaycastHit::distance = 0.0f |
Distance from the ray origin to the hit point.
| bool kemena::kPhysicsRaycastHit::hit = false |
true if the ray struck a body.
| kVec3 kemena::kPhysicsRaycastHit::hitNormal |
World-space surface normal at the hit point.
| kVec3 kemena::kPhysicsRaycastHit::hitPoint |
World-space position of the intersection.
| kPhysicsObject* kemena::kPhysicsRaycastHit::object = nullptr |
The physics body that was hit (manager-owned).