b3dCreateTerrainPhysics

Creates Jolt HeightFieldShape physics for terrain (optimized for terrain collision, much faster than mesh). Takes entity (terrain entity handle). Returns physics body handle (0 if failed).

3D Graphics

Parameters & Returns

Parameters

entity Int

Returns

Int

Quick Summary

Creates Jolt HeightFieldShape physics for terrain (optimized for terrain collision, much faster than mesh). Takes entity (terrain entity handle). Returns physics body handle (0 if failed).

Technical Exegesis...

Creates Jolt HeightFieldShape physics for terrain (optimized for terrain collision, much faster than mesh). Takes entity (terrain entity handle). Returns physics body handle (0 if failed). Creates HeightFieldShape from heightmap data (width x height samples, spatial acceleration), creates static body (EMotionType::Static, layer 0 NON_MOVING), adds to Jolt system. Use for character walking on terrain, vehicle collision, object placement, or raycasting against terrain.

Example

Example.bam
; No example implemented yet