Leadwerks Game Engine

Leadwerks Game Engine

Not enough ratings
Terrain Cutter
   
Award
Favorite
Favorited
Unfavorite
Type: Map
File Size
Posted
Updated
191.126 KB
2 Jun, 2017 @ 3:51pm
2 Jun, 2017 @ 4:21pm
2 Change Notes ( view )

Subscribe to download
Terrain Cutter

Description
An experiment with terrain.
terrainCutter.lua Lowers terrain the size of the model/CSG it's attached to. terrainRemove.lua lowers it when you enter the model's AABB then restores it when not in it's AABB. Terrain can also be raised.

Test map included.

Drawbacks:
- when you create terrain it has to be raised or the script can't lower it.
- only does square/rectangular areas (AABB)

FPSplayer.lua required for test map.
Make sure the tSize value in main.lua is set to your terrain size.
If you're testing on an existing project backup your Main.lua, this replaces it.

Files:
Scripts/Main.lua
Scripts/terrainCutter.lua
Scripts/terrainRemove.lua
Maps/terraintest.map