Skip to content

RoyInterface / Exports / scene/RoyAnimator / RoyAnimator

Class: RoyAnimator

scene/RoyAnimator.RoyAnimator

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new RoyAnimator(): RoyAnimator

Returns

RoyAnimator

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

NameType
outVec3
vert0Vec3
tang0Vec3
vert1Vec3
tang1Vec3
tnumber

Returns

void


cubicSplineFloat

cubicSplineFloat(vert0, tang0, vert1, tang1, t): number

Parameters

NameType
vert0number
tang0number
vert1number
tang1number
tnumber

Returns

number


cubicSplineQuat

cubicSplineQuat(out, vert0, tang0, vert1, tang1, t): void

Parameters

NameType
outQuat
vert0Quat
tang0Quat
vert1Quat
tang1Quat
tnumber

Returns

void


applyAnimation

applyAnimation(animationIndex, time): void

Parameters

NameType
animationIndexnumber
timenumber

Returns

void


updateBoneMatrices

updateBoneMatrices(skinInfo): void

Parameters

NameType
skinInfoRoySkinInfo

Returns

void