EPOK RUNTIME
epok::CollisionWorld
Class template
Class template
Bounded, allocation-free broad phase.
Basic usage
This minimal snippet shows the normal syntax for reaching the type. Open a member below for an operation-specific example.
C++ example
#include "collision.hpp"
epok::CollisionWorld& value = /* obtain a valid instance from your game */;Fields and constants
Public methods
begin_syncBegins sync as part of bounded AABB collision queries and movement.MethodboundsPerforms `bounds` as part of bounded AABB collision queries and movement.MethodclearClears clear as part of bounded AABB collision queries and movement.MethodgroundDownward box sweep uses the complete footprint, including ledges missed by a center ray.Methodmove_and_slidePerforms `move and slide` as part of bounded AABB collision queries and movement.Methodnote_enabledPerforms `note enabled` as part of bounded AABB collision queries and movement.MethodoverlapReturns total matches; only the first output_capacity indices are written.MethodraycastSegment query: delta is the complete displacement, not a unit direction.MethodsetSets set as part of bounded AABB collision queries and movement.Methodset_cachedReturns whether bounds were rebuilt.Methodupdate_triggersUpdates triggers as part of bounded AABB collision queries and movement.Function template