Package com.jme3.bullet.control.ragdoll
Class RagdollPreset
java.lang.Object
com.jme3.bullet.control.ragdoll.RagdollPreset
- Direct Known Subclasses:
HumanoidRagdollPreset
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
Range of motion for a joint.protected class
One entry in a bone lexicon. -
Field Summary
Modifier and TypeFieldDescriptionprotected Map<String,
RagdollPreset.JointPreset> map bone names to joint presetsprotected Map<String,
RagdollPreset.LexiconEntry> lexicon to map bone names to entriesprotected static final Logger
message logger for this class -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
Initialize the map from bone names to joint presets.protected abstract void
Initialize the lexicon.void
setupJointForBone
(String boneName, SixDofJoint joint) Apply the preset for the named bone to the specified joint.
-
Field Details
-
logger
message logger for this class -
boneMap
map bone names to joint presets -
lexicon
lexicon to map bone names to entries
-
-
Constructor Details
-
RagdollPreset
public RagdollPreset()
-
-
Method Details
-
initBoneMap
protected abstract void initBoneMap()Initialize the map from bone names to joint presets. -
initLexicon
protected abstract void initLexicon()Initialize the lexicon. -
setupJointForBone
Apply the preset for the named bone to the specified joint.- Parameters:
boneName
- namejoint
- where to apply the preset (not null, modified)
-