Click or drag to resize
CollisionHeightMap Constructor (Single, Vector2, Single, Single, Single, Boolean)
Create the collision height map.

Namespace:  GeonBit.Core.Physics.CollisionShapes
Assembly:  GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public CollisionHeightMap(
	float[,] heightData,
	Vector2 scale,
	float minHeight = 0f,
	float maxHeight = 100f,
	float heightScale = 1f,
	bool useDiamondSubdivision = false
)

Parameters

heightData
Type: SystemSingle
Height map data.
scale
Type: Vector2
Scale tiles width and depth.
minHeight (Optional)
Type: SystemSingle
Min height value.
maxHeight (Optional)
Type: SystemSingle
Max height value.
heightScale (Optional)
Type: SystemSingle
Optional height scale.
useDiamondSubdivision (Optional)
Type: SystemBoolean
Divide the tiles into diamond shapes for more accurare results.
See Also