Function createHeightFieldShape
-
Parameters
- world: PhysicsWorld
The physics world.
- options: HeightFieldShapeOptions
Ground mesh source or explicit heightfield parameters.
Returns PhysicsShape
The created shape handle.
- world: PhysicsWorld
The physics world.
Ground mesh source or explicit heightfield parameters.
The created shape handle.
Create a Havok heightfield collision shape. Attach it to a STATIC body bound to the ground mesh so the heightfield aligns with the visible terrain.