Difference between revisions of "Vector"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(Created page with ''''vector''' is a basic data type in Dragon Age's scripting language. It is a series of floats that define an X, Y, Z coordinate in a map. <dascript> float vVector = Vec...')
 
Line 1: Line 1:
 
'''vector''' is a basic data type in Dragon Age's scripting language. It is a series of [[float]]s that define an X, Y, Z coordinate in a map.
 
'''vector''' is a basic data type in Dragon Age's scripting language. It is a series of [[float]]s that define an X, Y, Z coordinate in a map.
  
 +
Example declaration:
 
<dascript>
 
<dascript>
     float vVector = Vector(0.0f, 1.1f, 2.2f);
+
     vector vVector = Vector(0.0f, 1.1f, 2.2f);
 
</dascript>
 
</dascript>
 +
 +
Note that this is not identical to the [[location]] data type, which contains additional information for placing objects in-world.

Revision as of 21:54, 22 July 2009

vector is a basic data type in Dragon Age's scripting language. It is a series of floats that define an X, Y, Z coordinate in a map.

Example declaration:

    vector vVector = Vector(0.0f, 1.1f, 2.2f);

Note that this is not identical to the location data type, which contains additional information for placing objects in-world.