Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ardiscript:addshape [2018/04/20 04:15]
optrix [Parameters]
ardiscript:addshape [2018/11/16 04:19] (current)
optrix [See Also]
Line 23: Line 23:
 |**polygon**|Creates an asset from a set of [[XY Coordinates]] which will form a customized polygon.| |**polygon**|Creates an asset from a set of [[XY Coordinates]] which will form a customized polygon.|
  
-==Polygon==+===Polygon===
  
 In order to crates a shape of the type //​polygon//,​ multiple [[XY Coordinates]] must be specified using the //points// parameter. See //points// for more information. In order to crates a shape of the type //​polygon//,​ multiple [[XY Coordinates]] must be specified using the //points// parameter. See //points// for more information.
  
-==Points==+===Points===
  
 //Type: Multiple [[XY Coordinates]] //Type: Multiple [[XY Coordinates]]
 Default: None// Default: None//
- 
-//Must only be used if the shape type **Polygon** was specified.//​ 
  
 Each coordinate must be specified and formatted as "X1 Y1,X2 Y2,X3 Y3". At least 3 sets of coordinates must be specified. Each coordinate must be specified and formatted as "X1 Y1,X2 Y2,X3 Y3". At least 3 sets of coordinates must be specified.
  
-==Extrude==+//Must only be used if the shape type **Polygon** was specified.//​ 
 + 
 +===Extrude===
  
 //Type: [[Float]] //Type: [[Float]]
 Default: None// Default: None//
  
 +The amount to extrude from the specified //Polygon// //Points// to convert a flat shape into a 3D shape.
  
 //Must only be used if the shape type **Polygon** was specified.//​ //Must only be used if the shape type **Polygon** was specified.//​
  
-The amount to extrude from the specified ​//Polygon// //Points// to convert ​flat shape into a 3D shape.+===TopAndBottom=== 
 + 
 +//Type: [[Bool]] 
 +Default: **True**// 
 + 
 +Used when the shape type is defined as a //Polygon// type. If true, it will generate ceiling and floor polygons ​to create ​completely solid shape. If false, there will be no ceiling or floor and only the walls of the mesh will be generated. 
 + 
 +//Must only be used if the shape type **Polygon** was specified.//
  
 ===Name=== ===Name===
Line 59: Line 67:
 The co-ordinates in which to place the asset within the 3D world. Co-ordinates are defined as "​x,​y,​z",​ separated by a ','​ and no spaces. The co-ordinates in which to place the asset within the 3D world. Co-ordinates are defined as "​x,​y,​z",​ separated by a ','​ and no spaces.
  
-==AttachTo== ​+===AttachTo===
 //Type: Text //Type: Text
 Default: None// Default: None//
Line 67: Line 75:
 If defined, this asset will be parented to the specified asset and it's //​position//​ will be converted to local co-ordinates around the parent asset. If defined, this asset will be parented to the specified asset and it's //​position//​ will be converted to local co-ordinates around the parent asset.
  
-==CopyRotation==+===CopyRotation===
  
 //Type: [[Bool]] //Type: [[Bool]]
Line 74: Line 82:
 Only used when an //​AttachTo//​ parameter is defined. If true, the asset will attempt to copy the rotation of it's parent. Only used when an //​AttachTo//​ parameter is defined. If true, the asset will attempt to copy the rotation of it's parent.
  
-==Color==+===Color===
 //Type: [[RGB]] or [[RGBA]] //Type: [[RGB]] or [[RGBA]]
 Default: **1,​1,​1,​1**//​ Default: **1,​1,​1,​1**//​
Line 86: Line 94:
 |**a**|The value for the amount of alpha transparency to be applied. Must be a value ranging from 0.0 to 1.0. //This parameter is optional//| |**a**|The value for the amount of alpha transparency to be applied. Must be a value ranging from 0.0 to 1.0. //This parameter is optional//|
  
-==Texture==+===Texture===
 //Type: [[Path]] //Type: [[Path]]
 Default: None// Default: None//
Line 94: Line 102:
 This applies textures to the new asset, allowing more graphical detail to be added. This applies textures to the new asset, allowing more graphical detail to be added.
  
-==Transparent==+===Transparent===
 //Type: [[Bool]] //Type: [[Bool]]
 Default: **False**// Default: **False**//
Line 101: Line 109:
  
 ====See Also==== ====See Also====
-[[addmesh]] [[addbeacon]] [[remove]]+[[addmesh]] [[addbeacon]] [[addparticle]] [[addlinkedpoints]] [[remove]] [[duplicateobject]]
  
 ====Examples==== ====Examples====