com.jme3.bullet.collision.shapes
クラス CompoundCollisionShape

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

public class CompoundCollisionShape
extends CollisionShape

A CompoundCollisionShape allows combining multiple base shapes to generate a more sophisticated shape.


コンストラクタの概要
CompoundCollisionShape()
           
 
メソッドの概要
 void addChildShape(CollisionShape shape, Vector3f location)
          adds a child shape at the given local translation
 void addChildShape(CollisionShape shape, Vector3f location, Matrix3f rotation)
          adds a child shape at the given local translation
 java.util.List<ChildCollisionShape> getChildren()
           
 void read(JmeImporter im)
           
 void removeChildShape(CollisionShape shape)
          removes a child shape
 void setScale(Vector3f scale)
          WARNING - CompoundCollisionShape scaling has no effect.
 void write(JmeExporter ex)
           
 
クラス com.jme3.bullet.collision.shapes.CollisionShape から継承されたメソッド
calculateLocalInertia, getCShape, getMargin, getScale, setCShape, setMargin
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

CompoundCollisionShape

public CompoundCollisionShape()
メソッドの詳細

addChildShape

public void addChildShape(CollisionShape shape,
                          Vector3f location)
adds a child shape at the given local translation

パラメータ:
shape - the child shape to add
location - the local location of the child shape

addChildShape

public void addChildShape(CollisionShape shape,
                          Vector3f location,
                          Matrix3f rotation)
adds a child shape at the given local translation

パラメータ:
shape - the child shape to add
location - the local location of the child shape

removeChildShape

public void removeChildShape(CollisionShape shape)
removes a child shape

パラメータ:
shape - the child shape to remove

getChildren

public java.util.List<ChildCollisionShape> getChildren()

setScale

public void setScale(Vector3f scale)
WARNING - CompoundCollisionShape scaling has no effect.

オーバーライド:
クラス CollisionShape 内の setScale

write

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

read

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