com.jme3.bullet.joints
クラス HingeJoint

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

public class HingeJoint
extends PhysicsJoint

From bullet manual:
Hinge constraint, or revolute joint restricts two additional angular degrees of freedom, so the body can only rotate around one axis, the hinge axis. This can be useful to represent doors or wheels rotating around one axis. The user can specify limits and motor for the hinge.


コンストラクタの概要
HingeJoint()
           
HingeJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivotB, Vector3f axisA, Vector3f axisB)
          Creates a new HingeJoint
 
メソッドの概要
 void enableMotor(boolean enable, float targetVelocity, float maxMotorImpulse)
           
 float getHingeAngle()
           
 float getLowerLimit()
           
 float getUpperLimit()
           
 void read(JmeImporter im)
           
 void setAngularOnly(boolean angularOnly)
           
 void setLimit(float low, float high)
           
 void setLimit(float low, float high, float _softness, float _biasFactor, float _relaxationFactor)
           
 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
 

コンストラクタの詳細

HingeJoint

public HingeJoint()

HingeJoint

public HingeJoint(PhysicsRigidBody nodeA,
                  PhysicsRigidBody nodeB,
                  Vector3f pivotA,
                  Vector3f pivotB,
                  Vector3f axisA,
                  Vector3f axisB)
Creates a new HingeJoint

パラメータ:
pivotA - local translation of the joint connection point in node A
pivotB - local translation of the joint connection point in node B
メソッドの詳細

enableMotor

public void enableMotor(boolean enable,
                        float targetVelocity,
                        float maxMotorImpulse)

setLimit

public void setLimit(float low,
                     float high)

setLimit

public void setLimit(float low,
                     float high,
                     float _softness,
                     float _biasFactor,
                     float _relaxationFactor)

getUpperLimit

public float getUpperLimit()

getLowerLimit

public float getLowerLimit()

setAngularOnly

public void setAngularOnly(boolean angularOnly)

getHingeAngle

public float getHingeAngle()

write

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

read

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