Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / components / VRTeleportAreaComponent

Class: VRTeleportAreaComponent ​

Defined in: components/VRTeleportArea.ts:28

Marks an entity's surface as a valid teleport destination.

Teleport is an allow-list, not a physics query: only entities carrying an enabled area can be teleported onto. That keeps destinations deliberate — authors decide where the player may stand rather than discovering that every collider in the scene is walkable.

Extends ​

Constructors ​

Constructor ​

ts
new VRTeleportAreaComponent(options?): VRTeleportAreaComponent;

Defined in: components/VRTeleportArea.ts:38

Parameters ​

ParameterType
options?VRTeleportAreaOptions

Returns ​

VRTeleportAreaComponent

Overrides ​

Component.constructor

Properties ​

PropertyTypeDescriptionDefined in
enabledbooleanWhether this area currently accepts teleports.components/VRTeleportArea.ts:30
shapeVrTeleportShapeFootprint shape.components/VRTeleportArea.ts:32
widthnumberFull width in metres (diameter for circle).components/VRTeleportArea.ts:34
depthnumberFull depth in metres (unused for circle).components/VRTeleportArea.ts:36