EPOK RUNTIME
epok::CollisionHit2DSample
Struct
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.
Struct
One World2D query hit: the actor owning the collider, the entry fraction along the segment, the contact point and the axis normal, in pixels.
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 "gameplay_api.hpp"
epok::CollisionHit2DSample& value = /* obtain a valid instance from your game */;Fields and constants
actorExposes `actor` on `epok::CollisionHit2DSample` for the gameplay api module.FieldfractionExposes `fraction` on `epok::CollisionHit2DSample` for the gameplay api module.FieldhitExposes `hit` on `epok::CollisionHit2DSample` for the gameplay api module.FieldnormalExposes `normal` on `epok::CollisionHit2DSample` for the gameplay api module.FieldpointExposes `point` on `epok::CollisionHit2DSample` for the gameplay api module.Fieldstarted_insideExposes `started_inside` on `epok::CollisionHit2DSample` for the gameplay api module.Field