Search
Preparing search index...
The search index is not available
Spider Engine API
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Transform
Class Transform
Hierarchy
Component
Transform
Index
Constructors
constructor
Events
changed
Accessors
active
entity
events
Enabled
forward
id
inv
World
Matrix
local
Matrix
parent
position
right
rotation
scale
up
version
world
Forward
world
Matrix
world
Position
world
Right
world
Rotation
world
Scale
world
Up
Methods
copy
deserialize
destroy
dirtify
World
Matrix
isA
is
Loaded
local
ToWorld
on
Replace
reset
serialize
set
Entity
set
Local
Matrix
set
State
translate
upgrade
world
ToLocal
world
ToLocal
Direction
world
ToLocal
Rotation
Constructors
constructor
new
Transform
(
props
?:
ObjectProps
<
Transform
>
)
:
Transform
Parameters
Optional
props:
ObjectProps
<
Transform
>
Returns
Transform
Events
changed
changed
:
VoidSyncEvent
= new VoidSyncEvent()
Accessors
active
get
active
(
)
:
boolean
set
active
(
active
:
boolean
)
:
void
Returns
boolean
Parameters
active:
boolean
Returns
void
entity
get
entity
(
)
:
Entity
Returns
Entity
events
Enabled
set
eventsEnabled
(
enabled
:
boolean
)
:
void
Parameters
enabled:
boolean
Returns
void
forward
get
forward
(
)
:
Vector3
Returns
Vector3
id
get
id
(
)
:
string
Returns
string
inv
World
Matrix
get
invWorldMatrix
(
)
:
Matrix44
Returns
Matrix44
local
Matrix
get
localMatrix
(
)
:
Matrix44
Returns
Matrix44
parent
get
parent
(
)
:
undefined
|
Entity
Returns
undefined
|
Entity
position
get
position
(
)
:
Vector3
set
position
(
position
:
Vector3
)
:
void
Returns
Vector3
Parameters
position:
Vector3
Returns
void
right
get
right
(
)
:
Vector3
Returns
Vector3
rotation
get
rotation
(
)
:
Quaternion
set
rotation
(
rotation
:
Quaternion
)
:
void
Returns
Quaternion
Parameters
rotation:
Quaternion
Returns
void
scale
get
scale
(
)
:
Vector3
set
scale
(
scale
:
Vector3
)
:
void
Returns
Vector3
Parameters
scale:
Vector3
Returns
void
up
get
up
(
)
:
Vector3
Returns
Vector3
version
get
version
(
)
:
number
Returns
number
world
Forward
get
worldForward
(
)
:
Vector3
Returns
Vector3
world
Matrix
get
worldMatrix
(
)
:
Matrix44
Returns
Matrix44
world
Position
get
worldPosition
(
)
:
Vector3
set
worldPosition
(
worldPosition
:
Vector3
)
:
void
Returns
Vector3
Parameters
worldPosition:
Vector3
Returns
void
world
Right
get
worldRight
(
)
:
Vector3
Returns
Vector3
world
Rotation
get
worldRotation
(
)
:
Quaternion
Returns
Quaternion
world
Scale
get
worldScale
(
)
:
Vector3
Returns
Vector3
world
Up
get
worldUp
(
)
:
Vector3
Returns
Vector3
Methods
copy
copy
(
)
:
SerializableObject
Returns
SerializableObject
deserialize
deserialize
(
json
:
SerializedObjectType
)
:
Promise
<
SerializableObject
>
|
SerializableObject
Parameters
json:
SerializedObjectType
Returns
Promise
<
SerializableObject
>
|
SerializableObject
destroy
destroy
(
)
:
void
Returns
void
dirtify
World
Matrix
dirtify
World
Matrix
(
)
:
void
Returns
void
isA
isA<T>
(
type
:
object
)
:
boolean
Type parameters
T
Parameters
type:
object
constructor
:
function
new __type
(
...
args
:
any
[]
)
:
T
Parameters
Rest
...
args:
any
[]
Returns
T
Returns
boolean
is
Loaded
is
Loaded
(
)
:
boolean
Returns
boolean
local
ToWorld
local
ToWorld
(
localPos
:
Vector3
, worldPosOut
:
Vector3
)
:
Vector3
Parameters
localPos:
Vector3
worldPosOut:
Vector3
Returns
Vector3
on
Replace
on
Replace
(
previous
:
Transform
)
:
void
Parameters
previous:
Transform
Returns
void
reset
reset
(
)
:
void
Returns
void
serialize
serialize
(
)
:
SerializedObjectType
Returns
SerializedObjectType
set
Entity
set
Entity
(
entity
:
Entity
)
:
void
Parameters
entity:
Entity
Returns
void
set
Local
Matrix
set
Local
Matrix
(
matrix
:
Matrix44
)
:
void
Parameters
matrix:
Matrix44
Returns
void
set
State
set
State<T>
(
props
:
ObjectProps
<
T
>
)
:
void
Type parameters
T
Parameters
props:
ObjectProps
<
T
>
Returns
void
translate
translate
(
translation
:
Vector3
)
:
void
Parameters
translation:
Vector3
Returns
void
upgrade
upgrade
(
json
:
SerializedObject
, previousVersion
:
number
)
:
SerializedObject
Parameters
json:
SerializedObject
previousVersion:
number
Returns
SerializedObject
world
ToLocal
world
ToLocal
(
worldPos
:
Vector3
, localPosOut
:
Vector3
)
:
Vector3
Parameters
worldPos:
Vector3
localPosOut:
Vector3
Returns
Vector3
world
ToLocal
Direction
world
ToLocal
Direction
(
worldDirection
:
Vector3
, localDirOut
:
Vector3
)
:
Vector3
Parameters
worldDirection:
Vector3
localDirOut:
Vector3
Returns
Vector3
world
ToLocal
Rotation
world
ToLocal
Rotation
(
worldRotation
:
Quaternion
, localRotation
:
Quaternion
)
:
Quaternion
Parameters
worldRotation:
Quaternion
localRotation:
Quaternion
Returns
Quaternion
Globals
Transform
constructor
changed
active
entity
events
Enabled
forward
id
inv
World
Matrix
local
Matrix
parent
position
right
rotation
scale
up
version
world
Forward
world
Matrix
world
Position
world
Right
world
Rotation
world
Scale
world
Up
copy
deserialize
destroy
dirtify
World
Matrix
isA
is
Loaded
local
ToWorld
on
Replace
reset
serialize
set
Entity
set
Local
Matrix
set
State
translate
upgrade
world
ToLocal
world
ToLocal
Direction
world
ToLocal
Rotation