Trade-offs and warnings
Consult the linked header for this operation’s ownership, lifetime and failure behavior.
EPOK RUNTIME
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.
Performs `raycast pair` as part of the gameplay api module.
CollisionHitPair raycast_pair(GameplayVector3 first_origin,GameplayVector3 first_displacement,GameplayVector3 second_origin,GameplayVector3 second_displacement,uint32_t mask,ObjectId ignore,bool triggers)Performs `raycast pair` as part of the gameplay api module.
| Parameter | Type | Meaning |
|---|---|---|
first_origin | GameplayVector3 | Not documented; consult the linked header. |
first_displacement | GameplayVector3 | Not documented; consult the linked header. |
second_origin | GameplayVector3 | Not documented; consult the linked header. |
second_displacement | GameplayVector3 | Not documented; consult the linked header. |
mask | uint32_t | Not documented; consult the linked header. |
ignore | ObjectId | Not documented; consult the linked header. |
triggers | bool | Not documented; consult the linked header. |
Returns: CollisionHitPair. Consult the linked header for its meaning.
#include "gameplay_api.hpp"
// Assume these named values have been initialized with valid data:
// GameplayVector3 first_origin
// GameplayVector3 first_displacement
// GameplayVector3 second_origin
// GameplayVector3 second_displacement
// uint32_t mask
// ObjectId ignore
// bool triggers
epok::SpatialQueryContextComponent& object = /* obtain a valid instance */;
auto result = object.raycast_pair(first_origin, first_displacement, second_origin, second_displacement, mask, ignore, triggers);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/gameplay_api.hpp:424
batchNative consumers can share the same kernel without copying a snapshot.Methodbegin_playBegins play as part of the gameplay api module.Methodclass_idPerforms `class id` as part of the gameplay api module.Methodend_playEnds play as part of the gameplay api module.Methodlive_batchPerforms `live batch` as part of the gameplay api module.MethodmovePerforms `move` as part of the gameplay api module.Methodon_disablePerforms `on disable` as part of the gameplay api module.Methodon_enablePerforms `on enable` as part of the gameplay api module.Methodpublish_actorPerforms `publish actor` as part of the gameplay api module.Methodraycast_segmentPerforms `raycast segment` as part of the gameplay api module.Methodreset_queriesResets queries as part of the gameplay api module.MethodtickPerforms `tick` as part of the gameplay api module.Method