Epok Engine

EPOK RUNTIME

epok::CollisionWorld::move_and_slide

Method · 1 overload

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.

Method

Performs `move and slide` as part of bounded AABB collision queries and movement.

Belongs to
epok::CollisionWorld
Header
collision.hpp
Overloads
1

Declaration

const
Declaration
MoveResultT<Number> move_and_slide(AabbT<Number> box,const Number* displacement,uint32_t mask=0xffffffffu,int ignore=-1) const

Performs `move and slide` as part of bounded AABB collision queries and movement.

ParameterTypeMeaning
boxAabbT<Number>Not documented; consult the linked header.
displacementconst Number *Not documented; consult the linked header.
maskuint32_tNot documented; consult the linked header.
ignoreintNot documented; consult the linked header.

Returns: MoveResultT<Number>. Consult the linked header for its meaning.

Example sketch

C++ example
#include "collision.hpp"

// Assume these named values have been initialized with valid data:
// AabbT<Number> box
// const Number * displacement
// uint32_t mask
// int ignore

epok::CollisionWorld& object = /* obtain a valid instance */;

auto result = object.move_and_slide(box, displacement, mask, ignore);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in runtime/collision.hpp:422

Related members