CollisionHeightMap Constructor (Vector3, 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 public CollisionHeightMap(
Vector3[,] heightData,
Vector2 scale,
float minHeight = 0f,
float maxHeight = 100f,
float heightScale = 1f,
bool useDiamondSubdivision = false
)
Parameters
- heightData
- Type: Vector3
Height map data (use vector Y component). - 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