Appearance
@tmrw-realityos/world • Docs
@tmrw-realityos/world / Components / Seat
Class: Seat
Seat component
Extends
Constructors
new Seat()
new Seat():
Seat
Returns
Overrides
Defined in
Properties
enabled
enabled:
boolean
=true
Inherited from
Defined in
height
height:
number
=0.5
Defined in
mustSave
mustSave:
boolean
=true
Inherited from
Defined in
parent?
optional
parent:ComponentsContainer
Inherited from
Defined in
proxyNodeName
proxyNodeName:
string
=""
Defined in
rotatingSeat
rotatingSeat:
boolean
=false
Defined in
uid
uid:
string
=""
Inherited from
Defined in
user?
optional
user:Entity
Defined in
circleVertices?
static
optional
circleVertices:Float32Array
Defined in
compName
static
compName:string
="Seat"
Overrides
Defined in
Accessors
entity
get
entity():undefined
|Entity
set
entity(_v
):void
Parameters
• _v: Entity
Returns
undefined
| Entity
Inherited from
Defined in
Methods
alignCameraToSeat()
alignCameraToSeat(
camera
):void
Parameters
• camera: Camera
Returns
void
Defined in
alignEntityToSeat()
alignEntityToSeat(
e
):void
Parameters
• e: Entity
Returns
void
Defined in
alignSeatToCamera()
alignSeatToCamera(
camera
):void
Parameters
• camera: Camera
Returns
void
Defined in
alignSeatToEntity()
alignSeatToEntity(
ent
):void
Parameters
• ent: Entity
Returns
void
Defined in
configure()
configure(
o
):void
Parameters
• o
• o.proxy_node: string
• o.rotating_seat: boolean
Returns
void
Overrides
Defined in
getCompName()
getCompName():
string
Returns
string
Inherited from
Defined in
onAdded()?
optional
onAdded():void
Returns
void
Inherited from
Defined in
onClick()
onClick():
void
Returns
void
Overrides
Defined in
onDrawGizmos()
onDrawGizmos(
renderer
):void
Parameters
• renderer: RendererInterface
Returns
void
Defined in
onRemoved()
onRemoved():
void
Returns
void
Overrides
Defined in
onUpdate()?
optional
onUpdate(dt
):void
Parameters
• dt: number
Returns
void
Inherited from
Defined in
preRender()
preRender(
_cam
):void
Informs the proxy node can be clicked
Parameters
• _cam: Camera
Returns
void
Defined in
serialize()
serialize():
void
Returns
void