Skip to content

@tmrw-realityos/worldDocs


@tmrw-realityos/world / Components / Seat

Class: Seat

Seat component

Extends

Constructors

new Seat()

new Seat(): Seat

Returns

Seat

Overrides

BaseComponent.constructor

Defined in

world/components/seat.ts:28

Properties

enabled

enabled: boolean = true

Inherited from

BaseComponent.enabled

Defined in

world/components.ts:7


height

height: number = 0.5

Defined in

world/components/seat.ts:20


mustSave

mustSave: boolean = true

Inherited from

BaseComponent.mustSave

Defined in

world/components.ts:8


parent?

optional parent: ComponentsContainer

Inherited from

BaseComponent.parent

Defined in

world/components.ts:14


proxyNodeName

proxyNodeName: string = ""

Defined in

world/components/seat.ts:18


rotatingSeat

rotatingSeat: boolean = false

Defined in

world/components/seat.ts:19


uid

uid: string = ""

Inherited from

BaseComponent.uid

Defined in

world/components.ts:9


user?

optional user: Entity

Defined in

world/components/seat.ts:22


circleVertices?

static optional circleVertices: Float32Array

Defined in

world/components/seat.ts:26


compName

static compName: string = "Seat"

Overrides

BaseComponent.compName

Defined in

world/components/seat.ts:16

Accessors

entity

get entity(): undefined | Entity

set entity(_v): void

Parameters

_v: Entity

Returns

undefined | Entity

Inherited from

BaseComponent.entity

Defined in

world/components.ts:24

Methods

alignCameraToSeat()

alignCameraToSeat(camera): void

Parameters

camera: Camera

Returns

void

Defined in

world/components/seat.ts:82


alignEntityToSeat()

alignEntityToSeat(e): void

Parameters

e: Entity

Returns

void

Defined in

world/components/seat.ts:76


alignSeatToCamera()

alignSeatToCamera(camera): void

Parameters

camera: Camera

Returns

void

Defined in

world/components/seat.ts:106


alignSeatToEntity()

alignSeatToEntity(ent): void

Parameters

ent: Entity

Returns

void

Defined in

world/components/seat.ts:92


configure()

configure(o): void

Parameters

o

o.proxy_node: string

o.rotating_seat: boolean

Returns

void

Overrides

BaseComponent.configure

Defined in

world/components/seat.ts:71


getCompName()

getCompName(): string

Returns

string

Inherited from

BaseComponent.getCompName

Defined in

world/components.ts:11


onAdded()?

optional onAdded(): void

Returns

void

Inherited from

BaseComponent.onAdded

Defined in

world/components.ts:21


onClick()

onClick(): void

Returns

void

Overrides

BaseComponent.onClick

Defined in

world/components/seat.ts:66


onDrawGizmos()

onDrawGizmos(renderer): void

Parameters

renderer: RendererInterface

Returns

void

Defined in

world/components/seat.ts:120


onRemoved()

onRemoved(): void

Returns

void

Overrides

BaseComponent.onRemoved

Defined in

world/components/seat.ts:32


onUpdate()?

optional onUpdate(dt): void

Parameters

dt: number

Returns

void

Inherited from

BaseComponent.onUpdate

Defined in

world/components.ts:20


preRender()

preRender(_cam): void

Informs the proxy node can be clicked

Parameters

_cam: Camera

Returns

void

Defined in

world/components/seat.ts:41


serialize()

serialize(): void

Returns

void

Inherited from

BaseComponent.serialize

Defined in

world/components.ts:17