GarageGames / Torque3D

MIT Licensed Open Source version of Torque 3D from GarageGames
http://torque3d.org
MIT License
3.35k stars 1.2k forks source link

Snap to terrain Z offset. #2311

Closed Bloodknight closed 5 years ago

Bloodknight commented 5 years ago

Adds the capability to add a small offset to the Z value of items being told to snap to terrain.

Useful if you are building on flat terrain, using models that use a single place flooring. Stops the zfighting, the default is set to 1cm so its barely visible and zfighting is only seen when you view the plane from a much further distance. by default the offset feature is disabled

Both of the values can be set on line 63 and 64 of editorPrefs.ed,cs.

TerrainSnapOffsetZ off/on = 0/1 OffsetZValue is in meters/units so 0.01 =1cm