Appearance
@tmrw-realityos/world • Docs
@tmrw-realityos/world / Components / WalkableArea
Class: WalkableArea
Walkable area component.
Extends
Constructors
new WalkableArea()
new WalkableArea():
WalkableArea
Returns
Overrides
Defined in
world/components/walkableArea.ts:141
Properties
areas
areas:
wArea
[] =[]
Defined in
world/components/walkableArea.ts:139
enabled
enabled:
boolean
=true
Inherited from
Defined in
last_area_id
last_area_id:
number
=1
Defined in
world/components/walkableArea.ts:138
mustSave
mustSave:
boolean
=true
Inherited from
Defined in
parent?
optional
parent:ComponentsContainer
Inherited from
Defined in
uid
uid:
string
=""
Inherited from
Defined in
compName
static
compName:string
="WalkableArea"
Overrides
Defined in
world/components/walkableArea.ts:136
Accessors
entity
get
entity():undefined
|Entity
set
entity(_v
):void
Parameters
• _v: Entity
Returns
undefined
| Entity
Inherited from
Defined in
Methods
addArea()
addArea(
area
?):number
Parameters
• area?: wArea
Returns
number
Defined in
world/components/walkableArea.ts:145
adjustCamera()
adjustCamera(
camera
,height
):void
Parameters
• camera: Camera
• height: number
Returns
void
Defined in
world/components/walkableArea.ts:288
adjustNode()
adjustNode(
node
,height
):void
Parameters
• node: Node
• height: number
Returns
void
Defined in
world/components/walkableArea.ts:275
adjustPosition()
adjustPosition(
pos
,height
,removeHeight
):undefined
|vec3
Parameters
• pos: vec3
• height: number
= 0
• removeHeight: number
= 0
Returns
undefined
| vec3
Defined in
world/components/walkableArea.ts:204
configure()
configure(
o
):void
Parameters
Returns
void
Overrides
Defined in
world/components/walkableArea.ts:297
findArea()
findArea(
pos
):undefined
|wArea
Parameters
• pos: vec3
Returns
undefined
| wArea
Defined in
world/components/walkableArea.ts:183
getCompName()
getCompName():
string
Returns
string
Inherited from
Defined in
onAdded()?
optional
onAdded():void
Returns
void
Inherited from
Defined in
onClick()?
optional
onClick():void
Returns
void
Inherited from
Defined in
onRemoved()?
optional
onRemoved():void
Returns
void
Inherited from
Defined in
onUpdate()?
optional
onUpdate(dt
):void
Parameters
• dt: number
Returns
void
Inherited from
Defined in
removeArea()
removeArea(
index
):void
Parameters
• index: number
Returns
void
Defined in
world/components/walkableArea.ts:172
serialize()
serialize():
void
Returns
void