Skip to content

@tmrw-realityos/worldDocs


@tmrw-realityos/world / wArea

Class: wArea

Constructors

new wArea()

new wArea(): wArea

Returns

wArea

Properties

_bounding

_bounding: vec4

Defined in

world/components/walkableArea.ts:46


_component?

optional _component: WalkableArea

Defined in

world/components/walkableArea.ts:47


_participants

_participants: never[] = []

Defined in

world/components/walkableArea.ts:48


enabled

enabled: boolean = true

Defined in

world/components/walkableArea.ts:36


height

height: number = 0

Defined in

world/components/walkableArea.ts:37


id

id: number = -1

Defined in

world/components/walkableArea.ts:35


points

points: vec3[]

Defined in

world/components/walkableArea.ts:38


type

type: eAreaType = eAreaType.WALK

Defined in

world/components/walkableArea.ts:44

Methods

configure()

configure(o): void

Parameters

o: wAreaDescriptor

Returns

void

Defined in

world/components/walkableArea.ts:60


findNearestEdgePoint()

findNearestEdgePoint(pos, min_dist): undefined | vec3

Parameters

pos: vec3

min_dist: number = 100000

Returns

undefined | vec3

Defined in

world/components/walkableArea.ts:102


getCenter()

getCenter(out?): vec3

Parameters

out?: vec3

Returns

vec3

Defined in

world/components/walkableArea.ts:123


isInside()

isInside(pos): boolean

Parameters

pos: vec3

Returns

boolean

Defined in

world/components/walkableArea.ts:88


serialize()

serialize(o): wAreaDescriptor

Parameters

o: wAreaDescriptor

Returns

wAreaDescriptor

Defined in

world/components/walkableArea.ts:50


updateBounding()

updateBounding(): void

Returns

void

Defined in

world/components/walkableArea.ts:69