Class CAAT.Module.Skeleton.Skeleton
Defined in: Skeleton.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<private> |
__init(skeletonDataFromFile)
|
<private> |
__setSkeleton(skeletonDataFromFile)
|
addAnimation(name, animation)
|
|
addAnimationFromFile(name, url)
|
|
addBone(boneInfo)
|
|
addRotationKeyframe(name, keyframeInfo)
|
|
addScaleKeyframe(name, keyframeInfo)
|
|
addTranslationKeyframe(name, keyframeInfo)
|
|
calculate(time, animationTime)
|
|
endKeyframes(name, boneId)
|
|
getAnimationDataByName(name)
|
|
getBoneById(id)
|
|
getBoneByIndex(index)
|
|
getRoot()
|
|
paint(actorMatrix, ctx)
|
|
setAnimation(name)
|
|
setSkeletonFromFile(url)
|
Method Detail
<private>
__init(skeletonDataFromFile)
- Parameters:
- skeletonDataFromFile
<private>
__setSkeleton(skeletonDataFromFile)
- Parameters:
- skeletonDataFromFile
addAnimation(name, animation)
- Parameters:
- name
- animation
addAnimationFromFile(name, url)
- Parameters:
- name
- url
addBone(boneInfo)
- Parameters:
- boneInfo
addRotationKeyframe(name, keyframeInfo)
- Parameters:
- name
- keyframeInfo
addScaleKeyframe(name, keyframeInfo)
- Parameters:
- name
- keyframeInfo
addTranslationKeyframe(name, keyframeInfo)
- Parameters:
- name
- keyframeInfo
calculate(time, animationTime)
- Parameters:
- time
- animationTime
endKeyframes(name, boneId)
- Parameters:
- name
- boneId
getAnimationDataByName(name)
- Parameters:
- name
getBoneById(id)
- Parameters:
- id
getBoneByIndex(index)
- Parameters:
- index
getCurrentAnimationData()
getNumBones()
getRoot()
getSkeletonDataFromFile()
paint(actorMatrix, ctx)
- Parameters:
- actorMatrix
- ctx
setAnimation(name)
- Parameters:
- name
setSkeletonFromFile(url)
- Parameters:
- url