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

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

public class HeightfieldCollisionShape
extends CollisionShape

Uses Bullet Physics Heightfield terrain collision system. This is MUCH faster than using a regular mesh. There are a couple tricks though: -No rotation or translation is supported. -The collision bbox must be centered around 0,0,0 with the height above and below the y-axis being equal on either side. If not, the whole collision box is shifted vertically and things don't collide as they should.


コンストラクタの概要
HeightfieldCollisionShape()
           
HeightfieldCollisionShape(float[] heightmap)
           
HeightfieldCollisionShape(float[] heightmap, Vector3f scale)
           
 
メソッドの概要
 Mesh createJmeMesh()
           
 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
 

コンストラクタの詳細

HeightfieldCollisionShape

public HeightfieldCollisionShape()

HeightfieldCollisionShape

public HeightfieldCollisionShape(float[] heightmap)

HeightfieldCollisionShape

public HeightfieldCollisionShape(float[] heightmap,
                                 Vector3f scale)
メソッドの詳細

createJmeMesh

public Mesh createJmeMesh()

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