com.jme3.bullet.joints
クラス SixDofJoint

java.lang.Object
  上位を拡張 com.jme3.bullet.joints.PhysicsJoint
      上位を拡張 com.jme3.bullet.joints.SixDofJoint
すべての実装されたインタフェース:
Savable

public class SixDofJoint
extends PhysicsJoint

From bullet manual:
This generic constraint can emulate a variety of standard constraints, by configuring each of the 6 degrees of freedom (dof). The first 3 dof axis are linear axis, which represent translation of rigidbodies, and the latter 3 dof axis represent the angular motion. Each axis can be either locked, free or limited. On construction of a new btGeneric6DofConstraint, all axis are locked. Afterwards the axis can be reconfigured. Note that several combinations that include free and/or limited angular degrees of freedom are undefined.


コンストラクタの概要
SixDofJoint()
           
SixDofJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivotB, boolean useLinearReferenceFrameA)
           
SixDofJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivotB, Matrix3f rotA, Matrix3f rotB, boolean useLinearReferenceFrameA)
           
 
メソッドの概要
 RotationalLimitMotor getRotationalLimitMotor(int index)
          returns one of the three RotationalLimitMotors of this 6DofJoint which allow manipulating the rotational axes
 TranslationalLimitMotor getTranslationalLimitMotor()
          returns the TranslationalLimitMotor of this 6DofJoint which allows manipulating the translational axis
 void read(JmeImporter im)
           
 void setAngularLowerLimit(Vector3f vector)
           
 void setAngularUpperLimit(Vector3f vector)
           
 void setLinearLowerLimit(Vector3f vector)
           
 void setLinearUpperLimit(Vector3f vector)
           
 void write(JmeExporter ex)
           
 
クラス com.jme3.bullet.joints.PhysicsJoint から継承されたメソッド
destroy, getAppliedImpulse, getBodyA, getBodyB, getObjectId, getPivotA, getPivotB, isCollisionBetweenLinkedBodys, setCollisionBetweenLinkedBodys
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

SixDofJoint

public SixDofJoint()

SixDofJoint

public SixDofJoint(PhysicsRigidBody nodeA,
                   PhysicsRigidBody nodeB,
                   Vector3f pivotA,
                   Vector3f pivotB,
                   Matrix3f rotA,
                   Matrix3f rotB,
                   boolean useLinearReferenceFrameA)
パラメータ:
pivotA - local translation of the joint connection point in node A
pivotB - local translation of the joint connection point in node B

SixDofJoint

public SixDofJoint(PhysicsRigidBody nodeA,
                   PhysicsRigidBody nodeB,
                   Vector3f pivotA,
                   Vector3f pivotB,
                   boolean useLinearReferenceFrameA)
パラメータ:
pivotA - local translation of the joint connection point in node A
pivotB - local translation of the joint connection point in node B
メソッドの詳細

getTranslationalLimitMotor

public TranslationalLimitMotor getTranslationalLimitMotor()
returns the TranslationalLimitMotor of this 6DofJoint which allows manipulating the translational axis

戻り値:
the TranslationalLimitMotor

getRotationalLimitMotor

public RotationalLimitMotor getRotationalLimitMotor(int index)
returns one of the three RotationalLimitMotors of this 6DofJoint which allow manipulating the rotational axes

パラメータ:
index - the index of the RotationalLimitMotor
戻り値:
the RotationalLimitMotor at the given index

setLinearUpperLimit

public void setLinearUpperLimit(Vector3f vector)

setLinearLowerLimit

public void setLinearLowerLimit(Vector3f vector)

setAngularUpperLimit

public void setAngularUpperLimit(Vector3f vector)

setAngularLowerLimit

public void setAngularLowerLimit(Vector3f vector)

read

public void read(JmeImporter im)
          throws java.io.IOException
定義:
インタフェース Savable 内の read
オーバーライド:
クラス PhysicsJoint 内の read
例外:
java.io.IOException

write

public void write(JmeExporter ex)
           throws java.io.IOException
定義:
インタフェース Savable 内の write
オーバーライド:
クラス PhysicsJoint 内の write
例外:
java.io.IOException