IEntityTriggerProxy

C++
struct IEntityTriggerProxy : public IEntityProxy {
};
File

IEntityProxy.h

Description

Proximity trigger proxy interface.

IEntityTriggerProxy::ForwardEventsTo Method
C++
virtual void ForwardEventsTo(EntityId id) = 0;
Description

Forward enter/leave events to this entity

IEntityTriggerProxy::GetTriggerBounds Method
C++
virtual void GetTriggerBounds(AABB & bbox) = 0;
Description

Retrieve trigger bounding box in local space. Return: Axis aligned bounding box of the trigger in the local space.

IEntityTriggerProxy::InvalidateTrigger Method
C++
virtual void InvalidateTrigger() = 0;
Description

Invalidate the trigger, so it gets recalculated and catches things which are already inside when it gets enabled.

IEntityTriggerProxy::SetTriggerBounds Method
C++
virtual void SetTriggerBounds(const AABB & bbox) = 0;
Parameters
Parameters
Description
const AABB & bbox
Axis aligned bounding box of the trigger in entity local space (Rotation and scale of the entity is ignored). Set empty bounding box to disable trigger.
Description

Creates a trigger bounding box. When physics will detect collision with this bounding box it will send an events to the entity. If entity have script OnEnterArea and OnLeaveArea events will be called.