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