Appearance
RoyInterface / Exports / scene/RoyAnimator / RoyAnimator
Class: RoyAnimator
scene/RoyAnimator.RoyAnimator
Table of contents
Constructors
Properties
- cacheVert0
- cacheVert1
- cacheTang0
- cacheTang1
- cachePreV
- cacheNextV
- cacheCalV
- cacheVertQuat0
- cacheVertQuat1
- cacheTangQuat0
- cacheTangQuat1
- cachePreRot
- cacheNextRot
- cacheRotCal
- name
- rootNodes
- nodeMap
- animations
- morphWeightEnabled
- morphWeightArray
Methods
Constructors
constructor
• new RoyAnimator(): RoyAnimator
Returns
Properties
cacheVert0
▪ Static
Protected
cacheVert0: Vec3
cacheVert1
▪ Static
Protected
cacheVert1: Vec3
cacheTang0
▪ Static
Protected
cacheTang0: Vec3
cacheTang1
▪ Static
Protected
cacheTang1: Vec3
cachePreV
▪ Static
Protected
cachePreV: Vec3
cacheNextV
▪ Static
Protected
cacheNextV: Vec3
cacheCalV
▪ Static
Protected
cacheCalV: Vec3
cacheVertQuat0
▪ Static
Protected
cacheVertQuat0: Quat
cacheVertQuat1
▪ Static
Protected
cacheVertQuat1: Quat
cacheTangQuat0
▪ Static
Protected
cacheTangQuat0: Quat
cacheTangQuat1
▪ Static
Protected
cacheTangQuat1: Quat
cachePreRot
▪ Static
Protected
cachePreRot: Quat
cacheNextRot
▪ Static
Protected
cacheNextRot: Quat
cacheRotCal
▪ Static
Protected
cacheRotCal: Quat
name
• name: string
rootNodes
• rootNodes: RoySkeletonNode
[] = []
nodeMap
• nodeMap: Map
<number
, RoySkeletonNode
>
animations
• animations: RoyAnimAnimation
[] = []
morphWeightEnabled
• morphWeightEnabled: boolean
= false
morphWeightArray
• morphWeightArray: number
[]
Methods
cubicSplineVec3
▸ cubicSplineVec3(out
, vert0
, tang0
, vert1
, tang1
, t
): void
Parameters
Name | Type |
---|---|
out | Vec3 |
vert0 | Vec3 |
tang0 | Vec3 |
vert1 | Vec3 |
tang1 | Vec3 |
t | number |
Returns
void
cubicSplineFloat
▸ cubicSplineFloat(vert0
, tang0
, vert1
, tang1
, t
): number
Parameters
Name | Type |
---|---|
vert0 | number |
tang0 | number |
vert1 | number |
tang1 | number |
t | number |
Returns
number
cubicSplineQuat
▸ cubicSplineQuat(out
, vert0
, tang0
, vert1
, tang1
, t
): void
Parameters
Name | Type |
---|---|
out | Quat |
vert0 | Quat |
tang0 | Quat |
vert1 | Quat |
tang1 | Quat |
t | number |
Returns
void
applyAnimation
▸ applyAnimation(animationIndex
, time
): void
Parameters
Name | Type |
---|---|
animationIndex | number |
time | number |
Returns
void
updateBoneMatrices
▸ updateBoneMatrices(skinInfo
): void
Parameters
Name | Type |
---|---|
skinInfo | RoySkinInfo |
Returns
void