com.jme3.bullet.joints
クラス PhysicsJoint

java.lang.Object
  上位を拡張 com.jme3.bullet.joints.PhysicsJoint
すべての実装されたインタフェース:
Savable
直系の既知のサブクラス:
ConeJoint, HingeJoint, Point2PointJoint, SixDofJoint, SliderJoint

public abstract class PhysicsJoint
extends java.lang.Object
implements Savable

PhysicsJoint - Basic Phyiscs Joint


コンストラクタの概要
PhysicsJoint()
           
PhysicsJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivotB)
           
 
メソッドの概要
 void destroy()
          destroys this joint and removes it from its connected PhysicsRigidBodys joint lists
 float getAppliedImpulse()
           
 PhysicsRigidBody getBodyA()
           
 PhysicsRigidBody getBodyB()
           
 com.bulletphysics.dynamics.constraintsolver.TypedConstraint getObjectId()
           
 Vector3f getPivotA()
           
 Vector3f getPivotB()
           
 boolean isCollisionBetweenLinkedBodys()
           
 void read(JmeImporter im)
           
 void setCollisionBetweenLinkedBodys(boolean collisionBetweenLinkedBodys)
          toggles collisions between linked bodys
joint has to be removed from and added to PhyiscsSpace to apply this.
 void write(JmeExporter ex)
           
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

PhysicsJoint

public PhysicsJoint()

PhysicsJoint

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

getAppliedImpulse

public float getAppliedImpulse()

getObjectId

public com.bulletphysics.dynamics.constraintsolver.TypedConstraint getObjectId()
戻り値:
the constraint

isCollisionBetweenLinkedBodys

public boolean isCollisionBetweenLinkedBodys()
戻り値:
the collisionBetweenLinkedBodys

setCollisionBetweenLinkedBodys

public void setCollisionBetweenLinkedBodys(boolean collisionBetweenLinkedBodys)
toggles collisions between linked bodys
joint has to be removed from and added to PhyiscsSpace to apply this.

パラメータ:
collisionBetweenLinkedBodys - set to false to have no collisions between linked bodys

getBodyA

public PhysicsRigidBody getBodyA()

getBodyB

public PhysicsRigidBody getBodyB()

getPivotA

public Vector3f getPivotA()

getPivotB

public Vector3f getPivotB()

destroy

public void destroy()
destroys this joint and removes it from its connected PhysicsRigidBodys joint lists


write

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

read

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