EPOK RUNTIME
epok::CollisionWorld
Class template
Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.
Class template
Bounded, allocation-free broad phase.
Basic usage
This generated sketch illustrates syntax for reaching the type; adapt it to the actual API contract. 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.Methodhas_trigger_pairsReports whether trigger pairs as part of bounded AABB collision queries and movement.Methodmove_and_slidePerforms `move and slide` 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.Methodraycast_batchPerforms `raycast batch` as part of bounded AABB collision queries and movement.MethodsetSets set as part of bounded AABB collision queries and movement.Methodset_cachedReturns whether bounds were rebuilt.MethodtranslateA root actor's movement changes only translation.Methodupdate_triggersUpdates triggers as part of bounded AABB collision queries and movement.Function template