20 glm::vec3
point = {0.0f, 0.0f, 0.0f};
21 glm::vec3
normal = {0.0f, 1.0f, 0.0f};
58 const glm::vec3& origin,
59 const glm::vec3& direction,
82 const glm::vec3& origin,
84 const glm::vec3& direction,
87 const QueryFilter& filter = {}
Central registry managing entities and an open set of component types.
Definition scene.h:29
Names one entity of one Scene, for as long as that slot holds it.
Definition entity.h:23
Which bodies a query is allowed to see.
Definition query.h:29
int layerMask
Which layers may be hit, as a mask of the bits collision uses; everything by default.
Definition query.h:38
EntityId ignore
Never hit; the caster, usually.
Definition query.h:30
bool hitTriggers
Include colliders marked isTrigger.
Definition query.h:31
bool hitStatic
Include Static and Kinematic bodies, by their authored motion.
Definition query.h:32
bool hitDynamic
Include Dynamic bodies, a ragdoll's posed bones among them.
Definition query.h:33
What a query struck: which entity, where, and the surface it hit.
Definition query.h:17
EntityId entity
The body that was struck.
Definition query.h:18
glm::vec3 normal
Outward surface normal.
Definition query.h:21
glm::vec3 point
World-space contact point.
Definition query.h:20
float distance
Along the ray, in metres.
Definition query.h:19