org.cogchar.render.model.humanoid
Class HumanoidFigure

java.lang.Object
  extended by org.appdapter.core.log.BasicDebugger
      extended by org.cogchar.render.model.humanoid.HumanoidFigure
All Implemented Interfaces:
com.jme3.animation.AnimEventListener, com.jme3.bullet.collision.RagdollCollisionListener, org.appdapter.core.log.Loggable
Direct Known Subclasses:
PhysicallyWigglingHumanoid

public class HumanoidFigure
extends org.appdapter.core.log.BasicDebugger
implements com.jme3.bullet.collision.RagdollCollisionListener, com.jme3.animation.AnimEventListener

Author:
Stu B.

Field Summary
static String ANIM_DANCE
           
static String ANIM_IDLE_TOP
           
static String ANIM_STAND_BACK
           
static String ANIM_STAND_FRONT
           
static String SKEL_DEBUG_NAME
           
 
Fields inherited from interface org.appdapter.core.log.Loggable
IMPO_HI, IMPO_HIHI, IMPO_LO, IMPO_LOLO, IMPO_MAX, IMPO_MIN, IMPO_NORM
 
Constructor Summary
HumanoidFigure(HumanoidFigureConfig hfc)
           
 
Method Summary
 void applyFigureState(FigureState fs)
           
static void applyHumanoidJointLimits(com.jme3.bullet.control.KinematicRagdollControl krc)
           
protected  void attachRagdollBone(HumanoidBoneDesc hbd)
           
 void attachRagdollBones()
           
protected  void becomeFloppyRagdoll()
           
protected  void becomeKinematicPuppet()
           
 void collide(com.jme3.animation.Bone bone, com.jme3.bullet.collision.PhysicsCollisionObject pco, com.jme3.bullet.collision.PhysicsCollisionEvent pce)
           
 void detachFromVirtualWorld(com.jme3.scene.Node parentNode, com.jme3.bullet.PhysicsSpace ps)
           
 com.jme3.scene.Node getBoneAttachmentsNode(String boneName)
           
protected  org.appdapter.core.name.Ident getCharIdent()
           
 FigureState getFigureState()
           
protected  HumanoidBoneConfig getHBConfig()
           
 HumanoidFigureModule getModule()
           
protected  String getNickname()
           
 com.jme3.scene.Node getNode()
           
protected  HumanoidRagdollControl getRagdollControl()
           
protected  com.jme3.animation.Bone getRootBone()
           
protected  com.jme3.animation.Bone getSpatialBone(String boneName)
           
 void initDebugSkeleton(com.jme3.asset.AssetManager assetMgr)
           
 boolean loadMeshAndSkeletonIntoVWorld(com.jme3.asset.AssetManager assetMgr, com.jme3.scene.Node parentNode, com.jme3.bullet.PhysicsSpace ps)
           
 void makeSinbadStandUp()
           
protected  void movePosition(float deltaX, float deltaY, float deltaZ)
           
protected  void moveToPosition(com.jme3.math.Vector3f pos)
           
 void onAnimChange(com.jme3.animation.AnimControl control, com.jme3.animation.AnimChannel channel, String animName)
           
 void onAnimCycleDone(com.jme3.animation.AnimControl control, com.jme3.animation.AnimChannel channel, String animName)
           
 void runSinbadBoogieAnim()
           
 void setFigureState(FigureState fs)
           
 void setModule(HumanoidFigureModule module)
           
 void toggleDebugSkeleton()
           
 
Methods inherited from class org.appdapter.core.log.BasicDebugger
checkDebugImportance, forceLog4jConfig, getLogger, getLoggerForClass, isLoggerUsable, logDebug, logError, logError, logInfo, logInfo, logInfoEvent, logWarning, logWarning, logWithException, setDebugImportanceThreshold, setLogger, useLoggerForClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANIM_STAND_FRONT

public static String ANIM_STAND_FRONT

ANIM_STAND_BACK

public static String ANIM_STAND_BACK

ANIM_DANCE

public static String ANIM_DANCE

ANIM_IDLE_TOP

public static String ANIM_IDLE_TOP

SKEL_DEBUG_NAME

public static String SKEL_DEBUG_NAME
Constructor Detail

HumanoidFigure

public HumanoidFigure(HumanoidFigureConfig hfc)
Method Detail

getRagdollControl

protected HumanoidRagdollControl getRagdollControl()

getCharIdent

protected org.appdapter.core.name.Ident getCharIdent()

getNickname

protected String getNickname()

getHBConfig

protected HumanoidBoneConfig getHBConfig()

getSpatialBone

protected com.jme3.animation.Bone getSpatialBone(String boneName)

getRootBone

protected com.jme3.animation.Bone getRootBone()

getModule

public HumanoidFigureModule getModule()

setModule

public void setModule(HumanoidFigureModule module)

loadMeshAndSkeletonIntoVWorld

public boolean loadMeshAndSkeletonIntoVWorld(com.jme3.asset.AssetManager assetMgr,
                                             com.jme3.scene.Node parentNode,
                                             com.jme3.bullet.PhysicsSpace ps)

detachFromVirtualWorld

public void detachFromVirtualWorld(com.jme3.scene.Node parentNode,
                                   com.jme3.bullet.PhysicsSpace ps)

becomeKinematicPuppet

protected void becomeKinematicPuppet()

becomeFloppyRagdoll

protected void becomeFloppyRagdoll()

makeSinbadStandUp

public void makeSinbadStandUp()

moveToPosition

protected void moveToPosition(com.jme3.math.Vector3f pos)

movePosition

protected void movePosition(float deltaX,
                            float deltaY,
                            float deltaZ)

getNode

public com.jme3.scene.Node getNode()

collide

public void collide(com.jme3.animation.Bone bone,
                    com.jme3.bullet.collision.PhysicsCollisionObject pco,
                    com.jme3.bullet.collision.PhysicsCollisionEvent pce)
Specified by:
collide in interface com.jme3.bullet.collision.RagdollCollisionListener

onAnimCycleDone

public void onAnimCycleDone(com.jme3.animation.AnimControl control,
                            com.jme3.animation.AnimChannel channel,
                            String animName)
Specified by:
onAnimCycleDone in interface com.jme3.animation.AnimEventListener

onAnimChange

public void onAnimChange(com.jme3.animation.AnimControl control,
                         com.jme3.animation.AnimChannel channel,
                         String animName)
Specified by:
onAnimChange in interface com.jme3.animation.AnimEventListener

runSinbadBoogieAnim

public void runSinbadBoogieAnim()

initDebugSkeleton

public void initDebugSkeleton(com.jme3.asset.AssetManager assetMgr)

toggleDebugSkeleton

public void toggleDebugSkeleton()

attachRagdollBone

protected void attachRagdollBone(HumanoidBoneDesc hbd)

getFigureState

public FigureState getFigureState()

setFigureState

public void setFigureState(FigureState fs)

applyFigureState

public void applyFigureState(FigureState fs)

attachRagdollBones

public void attachRagdollBones()

getBoneAttachmentsNode

public com.jme3.scene.Node getBoneAttachmentsNode(String boneName)

applyHumanoidJointLimits

public static void applyHumanoidJointLimits(com.jme3.bullet.control.KinematicRagdollControl krc)


Copyright © 2010-2013. All Rights Reserved.