TriggerPresentEvent
Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.
interface TriggerPresentEvent extends TriggerEvent { localPosition ?: number[]; parentPosition ?: number[];}
An extended collection of information during trigger events, with positional data, including:
Variables
Section titled “Variables”Variable | Type | Description |
---|---|---|
localPosition | optional, number[] | The position of the node in the local coordinate system of the TriggerRegion. Only populated if reportLocalPosition( ) is true. |
parentPosition | optional, number[] | The position of the node in the parent’s coordinate system (e.g. a parent group). Only populated if reportParentPosition( ) is true. |