com.jme3.bullet.control.ragdoll
クラス RagdollUtils

java.lang.Object
  上位を拡張 com.jme3.bullet.control.ragdoll.RagdollUtils

public class RagdollUtils
extends java.lang.Object


コンストラクタの概要
RagdollUtils()
           
 
メソッドの概要
static java.util.Map<java.lang.Integer,java.util.List<java.lang.Float>> buildPointMap(Spatial model)
           
static java.util.List<java.lang.Integer> getBoneIndices(Bone bone, 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, Vector3f initialScale, Vector3f initialPosition)
          Create a hull collision shape from linked vertices to this bone.
static HullCollisionShape makeShapeFromVerticeWeights(Spatial model, java.util.List<java.lang.Integer> boneIndices, Vector3f initialScale, 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(Bone bone, Vector3f pos, Quaternion rot, boolean restoreBoneControl, java.util.Set<java.lang.String> boneList)
          Updates a bone position and rotation.
static void setUserControl(Bone bone, boolean bool)
           
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

RagdollUtils

public RagdollUtils()
メソッドの詳細

setJointLimit

public static void setJointLimit(SixDofJoint joint,
                                 float maxX,
                                 float minX,
                                 float maxY,
                                 float minY,
                                 float maxZ,
                                 float minZ)

buildPointMap

public static java.util.Map<java.lang.Integer,java.util.List<java.lang.Float>> buildPointMap(Spatial model)

makeShapeFromPointMap

public static HullCollisionShape makeShapeFromPointMap(java.util.Map<java.lang.Integer,java.util.List<java.lang.Float>> pointsMap,
                                                       java.util.List<java.lang.Integer> boneIndices,
                                                       Vector3f initialScale,
                                                       Vector3f initialPosition)
Create a hull collision shape from linked vertices to this bone. Vertices have to be previoulsly gathered in a map using buildPointMap method

パラメータ:
link -
model -
戻り値:

getBoneIndices

public static java.util.List<java.lang.Integer> getBoneIndices(Bone bone,
                                                               Skeleton skeleton,
                                                               java.util.Set<java.lang.String> boneList)

makeShapeFromVerticeWeights

public static HullCollisionShape makeShapeFromVerticeWeights(Spatial model,
                                                             java.util.List<java.lang.Integer> boneIndices,
                                                             Vector3f initialScale,
                                                             Vector3f initialPosition,
                                                             float weightThreshold)
Create a hull collision shape from linked vertices to this bone.

パラメータ:
link -
model -
戻り値:

setTransform

public static void setTransform(Bone bone,
                                Vector3f pos,
                                Quaternion rot,
                                boolean restoreBoneControl,
                                java.util.Set<java.lang.String> boneList)
Updates a bone position and rotation. if the child bones are not in the bone list this means, they are not associated with a physic shape. So they have to be updated

パラメータ:
bone - the bone
pos - the position
rot - the rotation

setUserControl

public static void setUserControl(Bone bone,
                                  boolean bool)