ldk_raycast_mesh
Intersect a ray against mesh geometry.
LDK_API bool ldk_raycast_mesh(
LDKRay ray,
const LDKMeshData *mesh,
LDKRaycastHit *out_hit
);
Parameters
LDKRay ray
- Ray used by this operation.
const LDKMeshData *mesh
- Mesh resource used by the operation.
LDKRaycastHit *out_hit
- Receives the intersection details.
Returns
True if the operation succeeds; false otherwise.
ldk_raycast_mesh_transformed
Intersect a ray against transformed mesh geometry.
LDK_API bool ldk_raycast_mesh_transformed(
LDKRay ray,
const LDKMeshData *mesh,
Mat4 mesh_world,
LDKRaycastHit *out_hit
);
Parameters
LDKRay ray
- Ray used by this operation.
const LDKMeshData *mesh
- Mesh resource used by the operation.
Mat4 mesh_world
- Mesh world used by this operation.
LDKRaycastHit *out_hit
- Receives the intersection details.
Returns
True if the operation succeeds; false otherwise.