-
Notifications
You must be signed in to change notification settings - Fork 0
physics::ray_intersection_info
Paweł Waligóra edited this page May 20, 2024
·
1 revision
Result of physics::ray_cast() or physics::ray_cast_all() function. Holds information about ray - collider intersection.
#include "physics.h"
It's a bit mask. Last 2 bits are important. If last bit is 1 ray has entry point with the collider, else it doesn't. Analogously second to last bit determines if there is an exit point.
- entry and exit are 1 - ray intersects
- both 0 - ray does not intersect
- only exit point - ray starts inside the collider
- only entry point - only possible with, as it is a one sided collider: physics::colliders::plane
Points of intersection.
Pointer to collider that intersects a ray.
Distance between ray origin and entry point. If intersect entry bit is 0, then distance = 0.0f.
- engine
- scripts_system
- scene_loader
- time_system
-
input_system
- input_system::key_held
- input_system::key_events
- input_system::subscribe() (deprecated)
- input_system::axis_state()
- input_system::key_bind
- input_system::axis
- input_system::double_axis
- input_system::triple_axis
- input_system::axis2
- input_system::double_axis2
- input_system::triple_axis2
- input_system::axis-choice
- renderer
- physics
- ui_system
- game