This is an helper class to define a heightmap-based collider. In order to use, you need to extends this class and override the getZ method in order to return appropriate Z value based on X and Y coordinates.

Variables

@:value(1e-2)precision:Float = 1e-2

Tells which precision is required for the result. We will iterate until we have reach the given precision.

@:value(1.0)step:Float = 1.0

When performing raycast check, tells by how much step we advance. If this is too small, raycast check will be too expensive. If this is too big, we might step through a hip without noticing. Default : 1.0

Methods

Inherited Variables

Inherited Methods

Defined by Collider

dimension():Float