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

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

public class CapsuleCollisionShape
extends CollisionShape

Basic capsule collision shape


コンストラクタの概要
CapsuleCollisionShape()
           
CapsuleCollisionShape(float radius, float height)
          creates a new CapsuleCollisionShape with the given radius and height
CapsuleCollisionShape(float radius, float height, int axis)
          creates a capsule shape around the given axis (0=X,1=Y,2=Z)
 
メソッドの概要
 int getAxis()
           
 float getHeight()
           
 float getRadius()
           
 void read(JmeImporter im)
           
 void write(JmeExporter ex)
           
 
クラス com.jme3.bullet.collision.shapes.CollisionShape から継承されたメソッド
calculateLocalInertia, getCShape, getMargin, getScale, setCShape, setMargin, setScale
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

CapsuleCollisionShape

public CapsuleCollisionShape()

CapsuleCollisionShape

public CapsuleCollisionShape(float radius,
                             float height)
creates a new CapsuleCollisionShape with the given radius and height

パラメータ:
radius - the radius of the capsule
height - the height of the capsule

CapsuleCollisionShape

public CapsuleCollisionShape(float radius,
                             float height,
                             int axis)
creates a capsule shape around the given axis (0=X,1=Y,2=Z)

パラメータ:
radius -
height -
axis -
メソッドの詳細

getRadius

public float getRadius()

getHeight

public float getHeight()

getAxis

public int getAxis()

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