public class SkeletonModelGpuSkinned extends SkeletonModel
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BoneIndexAttribue |
static java.lang.String |
BoneWeightAttribue |
animations, skeleton, subMeshes| Constructor and Description |
|---|
SkeletonModelGpuSkinned(Skeleton skeleton,
SkeletonSubMesh[] subMeshes) |
| Modifier and Type | Method and Description |
|---|---|
static SkeletonModel |
CreateFromSkeletonModel(SkeletonModel skeletonModel) |
void |
setAnimation(java.lang.String animation,
float time,
boolean loop)
Start playing the given animation at the given time in the animation and specify wether or not the animation will loop.
|
void |
setupGpuSkin() |
dispose, getAnimation, getAnimations, getBoundingBox, getSubMesh, getSubMeshes, getSubModel, render, render, setBindPose, setMaterial, setMaterials, skinpublic static final java.lang.String BoneIndexAttribue
public static final java.lang.String BoneWeightAttribue
public SkeletonModelGpuSkinned(Skeleton skeleton, SkeletonSubMesh[] subMeshes)
public static SkeletonModel CreateFromSkeletonModel(SkeletonModel skeletonModel)
public void setupGpuSkin()
public void setAnimation(java.lang.String animation,
float time,
boolean loop)
AnimatedModelsetAnimation in interface AnimatedModelsetAnimation in class SkeletonModelanimation - The name of the animation in this Model that you should play.time - The time, in seconds, of the section to start the animation.loop - Whether or not the animation will loop if the time is after the end of the animation. (TODO what happens when
you reach the end of the animation and this is not set?)