class
TriggerVolume
- Module
- Game
- Header
#include "Gameplay/TriggerVolume.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
std::function<void(MObject*)> | onBeginOverlap | |
std::function<void(MObject*)> | onEndOverlap |
Public functions
| Returns | Name | Description |
|---|---|---|
void | SetSphere | |
void | SetBox | |
bool | Contains | |
void | UpdateOverlaps | Recompute overlaps from the current actor set. |
bool | IsOverlapping | |
int | OverlapCount |
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) constUpdateOverlaps
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) constOverlapCount
C++
int OverlapCount() constGenerated from Gameplay/TriggerVolume.h via game.json · Nov 5, 2026Version 1.0.0