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.
クラス 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 ApivotB
- 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