HeightfieldTerrainShape
JBullet 物理ライブラリからの使い方を見つけるのに苦労しています。ご覧のとおり、2 つのコンストラクターが利用可能です。
public HeightfieldTerrainShape(int heightStickWidth, int heightStickLength, byte[] heightfieldData,
float heightScale, float minHeight, float maxHeight, int upAxis, PHY_ScalarType heightDataType,
boolean flipQuadEdges)
と
public HeightfieldTerrainShape(int heightStickWidth, int heightStickLength, byte[] heightfieldData,
float maxHeight, int upAxis, boolean useFloatData, boolean flipQuadEdges)
heightScale
、minHeight
、maxHeight
およびupAxis
は自明です。しかし、「heightStick」とは正確には何ですか? また、幅と長さはどのように決定すればよいですか? heightfieldData にはどのような形式が期待されますか? これはフロートの単なるバイトバッファだと思いますか?