public class RagdollUtils
extends java.lang.Object
| Constructor and Description |
|---|
RagdollUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Map<java.lang.Integer,java.util.List<java.lang.Float>> |
buildPointMap(com.jme3.scene.Spatial model) |
static java.util.List<java.lang.Integer> |
getBoneIndices(com.jme3.animation.Bone bone,
com.jme3.animation.Skeleton skeleton,
java.util.Set<java.lang.String> boneList) |
static HullCollisionShape |
makeShapeFromPointMap(java.util.Map<java.lang.Integer,java.util.List<java.lang.Float>> pointsMap,
java.util.List<java.lang.Integer> boneIndices,
com.jme3.math.Vector3f initialScale,
com.jme3.math.Vector3f initialPosition)
Create a hull collision shape from linked vertices to this bone.
|
static HullCollisionShape |
makeShapeFromVerticeWeights(com.jme3.scene.Spatial model,
java.util.List<java.lang.Integer> boneIndices,
com.jme3.math.Vector3f initialScale,
com.jme3.math.Vector3f initialPosition,
float weightThreshold)
Create a hull collision shape from linked vertices to this bone.
|
static void |
setJointLimit(SixDofJoint joint,
float maxX,
float minX,
float maxY,
float minY,
float maxZ,
float minZ) |
static void |
setTransform(com.jme3.animation.Bone bone,
com.jme3.math.Vector3f pos,
com.jme3.math.Quaternion rot,
boolean restoreBoneControl,
java.util.Set<java.lang.String> boneList)
Updates a bone position and rotation.
|
static void |
setUserControl(com.jme3.animation.Bone bone,
boolean bool) |
public static void setJointLimit(SixDofJoint joint, float maxX, float minX, float maxY, float minY, float maxZ, float minZ)
public static java.util.Map<java.lang.Integer,java.util.List<java.lang.Float>> buildPointMap(com.jme3.scene.Spatial model)
public static HullCollisionShape makeShapeFromPointMap(java.util.Map<java.lang.Integer,java.util.List<java.lang.Float>> pointsMap, java.util.List<java.lang.Integer> boneIndices, com.jme3.math.Vector3f initialScale, com.jme3.math.Vector3f initialPosition)
pointsMap - boneIndices - initialScale - initialPosition - public static java.util.List<java.lang.Integer> getBoneIndices(com.jme3.animation.Bone bone,
com.jme3.animation.Skeleton skeleton,
java.util.Set<java.lang.String> boneList)
public static HullCollisionShape makeShapeFromVerticeWeights(com.jme3.scene.Spatial model, java.util.List<java.lang.Integer> boneIndices, com.jme3.math.Vector3f initialScale, com.jme3.math.Vector3f initialPosition, float weightThreshold)
model - boneIndices - initialScale - initialPosition - weightThreshold - public static void setTransform(com.jme3.animation.Bone bone,
com.jme3.math.Vector3f pos,
com.jme3.math.Quaternion rot,
boolean restoreBoneControl,
java.util.Set<java.lang.String> boneList)
bone - the bonepos - the positionrot - the rotationpublic static void setUserControl(com.jme3.animation.Bone bone,
boolean bool)