Hilo3d API - v2.0.0
Home
Examples
Repository
Preparing search index...
Hilo3d
AnimationStates
Class AnimationStates
A typed animation channel targeting one property of a scene node.
Index
Constructors
constructor
Properties
class
Name
id
interpolation
Type
is
Animation
States
key
Time
node
Name
states
type
interpolation
State
Type
Methods
clone
find
Index
By
Time
get
State
get
State
By
Index
interpolation
update
Node
Quaternion
update
Node
Scale
update
Node
State
update
Node
Translation
update
Node
Weights
get
Type
register
State
Handler
Constructors
constructor
new
AnimationStates
(
params
?:
AnimationStatesParameters
)
:
AnimationStates
Parameters
params
:
AnimationStatesParameters
= {}
Returns
AnimationStates
Properties
Readonly
class
Name
className
:
"AnimationStates"
= 'AnimationStates'
Readonly
id
id
:
string
interpolation
Type
interpolationType
:
AnimationInterpolationType
= 'LINEAR'
Readonly
is
Animation
States
isAnimationStates
:
true
key
Time
keyTime
:
number
[]
= []
node
Name
nodeName
:
string
= ''
states
states
:
unknown
[]
= []
type
type
:
AnimationStateType
= ''
Static
Readonly
interpolation
interpolation
:
Record
<
AnimationInterpolationType
,
InterpolationFunction
>
= INTERPOLATION
Static
Readonly
State
Type
StateType
:
Readonly
<
{
POSITION
:
"Translation"
;
QUATERNION
:
"Quaternion"
;
ROTATE
:
"Rotation"
;
ROTATION
:
"Rotation"
;
SCALE
:
"Scale"
;
TRANSLATE
:
"Translation"
;
TRANSLATION
:
"Translation"
;
WEIGHTS
:
"Weights"
;
}
,
>
= STATE_TYPES
Methods
clone
clone
()
:
AnimationStates
Returns
AnimationStates
find
Index
By
Time
findIndexByTime
(
time
:
number
)
:
[
number
,
number
]
Parameters
time
:
number
Returns
[
number
,
number
]
get
State
getState
(
time
:
number
)
:
unknown
Parameters
time
:
number
Returns
unknown
get
State
By
Index
getStateByIndex
(
index
:
number
)
:
unknown
Parameters
index
:
number
Returns
unknown
interpolation
interpolation
(
first
:
unknown
,
second
?:
unknown
,
ratio
?:
number
,
timeRange
?:
number
,
)
:
InterpolatedValue
Parameters
first
:
unknown
Optional
second
:
unknown
Optional
ratio
:
number
Optional
timeRange
:
number
Returns
InterpolatedValue
update
Node
Quaternion
updateNodeQuaternion
(
node
:
Node
,
value
:
unknown
)
:
void
Parameters
node
:
Node
value
:
unknown
Returns
void
update
Node
Scale
updateNodeScale
(
node
:
Node
,
value
:
unknown
)
:
void
Parameters
node
:
Node
value
:
unknown
Returns
void
update
Node
State
updateNodeState
(
time
:
number
,
node
?:
Node
)
:
void
Parameters
time
:
number
Optional
node
:
Node
Returns
void
update
Node
Translation
updateNodeTranslation
(
node
:
Node
,
value
:
unknown
)
:
void
Parameters
node
:
Node
value
:
unknown
Returns
void
update
Node
Weights
updateNodeWeights
(
node
:
Node
,
value
:
unknown
)
:
void
Parameters
node
:
Node
value
:
unknown
Returns
void
Static
get
Type
getType
(
name
:
string
)
:
AnimationStateType
Parameters
name
:
string
Returns
AnimationStateType
Static
register
State
Handler
registerStateHandler
(
name
:
string
,
handler
:
AnimationStateHandler
)
:
void
Parameters
name
:
string
handler
:
AnimationStateHandler
Returns
void
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
class
Name
id
interpolation
Type
is
Animation
States
key
Time
node
Name
states
type
interpolation
State
Type
Methods
clone
find
Index
By
Time
get
State
get
State
By
Index
interpolation
update
Node
Quaternion
update
Node
Scale
update
Node
State
update
Node
Translation
update
Node
Weights
get
Type
register
State
Handler
Home
Examples
Repository
Hilo3d API - v2.0.0
Loading...
A typed animation channel targeting one property of a scene node.