Click or drag to resize
CollisionHeightMap Constructor (Single, Point, 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,
	Point size,
	Vector2 scale,
	float minHeight = 0f,
	float maxHeight = 100f,
	float heightScale = 1f,
	bool useDiamondSubdivision = false
)

Parameters

heightData
Type: SystemSingle
Height map data (should be defined as byte[size.X * size.Y * 4]).
size
Type: Point
Tilemap size (Y is actually Z axis).
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