CreateTerrainBody()
Syntax
CreateTerrainBody(#Terrain, Restitution, Friction)Description
Adds a static physic body to the terrain. This enable physic objects to collide with the terrain.
Parameters
#Terrain The terrain to use. Restitution The restitution factor. If set to 0.0, the terrain will not restitute any force, which means than the colliding object will not bounce on the terrain. If sets to a value above 0.0, it will restitute some force so the colliding object will bounce when colliding to the terrain (the higher is the value, the more the bouncing will be). Friction The friction factor. If set to 0.0, the colliding object will slide on the terrain without loosing force. If sets to a value above 0.0, the colliding object will loose speed when colliding to the terrain (the higher is the value, the more the speed will decrease).
Return value
None.
See Also
CreateTerrain(), FreeTerrainBody()
Supported OS
All