Category:Render Time Scope Scripting Commands

From Bohemia Interactive Community
Jump to navigation Jump to search

These scripting commands work in render time scope rather than simulation time scope. Basically, what you see is what you get. Great for 3d icon drawing when smooth transition is required.

Render Time Scope Simulation Time Scope z Description
 getPosVisual / visiblePosition  getPos / position  z = 0 on objects with roadways, terrain, water + waves
 getPosATLVisual  getPosATL  z = 0 on terrain
 getPosASLVisual / visiblePositionASL  getPosASL  z = 0 on water
 N/A  getPosASLW  z = 0 on water + waves
 AGLToASL + modelToWorldVisual [0,0,0]  getPosWorld  z = 0 on water. Calculated to true model center instead of land contact or bounding center
 modelToWorldVisual  modelToWorld  z = 0 on objects with roadways, terrain, water + waves
 worldToModelVisual  worldToModel  z = 0 on objects with roadways, terrain, water + waves

Sniperwolf572's explanation: http://forums.bistudio.com/showthread.php?160330-Scripting-Discussion-(dev-branch)&p=2791294&viewfull=1#post2791294