class

TriggerVolume

Module
Game
Header
#include "Gameplay/TriggerVolume.h"
Namespace
Mowo

Properties

TypeNameDescription
std::function<void(MObject*)>onBeginOverlap
std::function<void(MObject*)>onEndOverlap

Public functions

ReturnsNameDescription
voidSetSphere
voidSetBox
boolContains
voidUpdateOverlapsRecompute overlaps from the current actor set.
boolIsOverlapping
intOverlapCount

Function details

SetSphere

C++
void SetSphere(const Vec3& center, float radius)

SetBox

C++
void SetBox(const Vec3& center, const Vec3& halfExtents)

Contains

C++
bool Contains(const Vec3& point) const

UpdateOverlaps

C++
void UpdateOverlaps(const std::vector<std::pair<MObject*, Vec3>>& actors)

Recompute overlaps from the current actor set. Fires onBeginOverlap for actors newly inside, onEndOverlap for actors that left.

IsOverlapping

C++
bool IsOverlapping(MObject* actor) const

OverlapCount

C++
int OverlapCount() const
Generated from Gameplay/TriggerVolume.h via game.json · Nov 5, 2026Version 1.0.0