Difference between revisions of "Canvas 3D - Transform Tags"

From CDOT Wiki
Jump to: navigation, search
Line 1: Line 1:
= Cube Tag Reference =
+
= Transform Tag Reference =
  
 
[[XML_3D_-_BTS530/630 Project|Back To XML 3D Main Page]]
 
[[XML_3D_-_BTS530/630 Project|Back To XML 3D Main Page]]
Line 5: Line 5:
 
== Introduction ==
 
== Introduction ==
  
Intro.
+
The Transfom Tag is a way of moving multiple objects in a direction all at the same time. Any Tags that are written within it at moved by an amount specified by the Transform Tag.  
  
 
== Tag Attributes ==
 
== Tag Attributes ==
  
 
* position
 
* position
 +
** '''Usage:''' <transform position="1.0, 1.0, 1.0"> ... </transform>.
 +
** The ''position'' attribute contains an array of three values that modify the X, Y, and Z values of the object(s) that the Transform Tag encompasses.
 +
** The values inside the position attribute are addative.
 +
** This attribute is mandatory.
  
 
== Syntax ==
 
== Syntax ==
  
 
<pre>
 
<pre>
Syntax Goes Here
+
<canvas>
 
+
<transform position="1.0, 1.0, 3.0">
 +
  <cube name="mycube" position="0.0, 0.0, 0.0" />
 +
  <sphere name="mysphere" position="10.0, 20.0, 30.0" />
 +
</transform>
 +
</canvas>
 
</pre>
 
</pre>
  
 
== References ==
 
== References ==
  
* Site.
+
* None.

Revision as of 18:19, 20 October 2006

Transform Tag Reference

Back To XML 3D Main Page

Introduction

The Transfom Tag is a way of moving multiple objects in a direction all at the same time. Any Tags that are written within it at moved by an amount specified by the Transform Tag.

Tag Attributes

  • position
    • Usage: <transform position="1.0, 1.0, 1.0"> ... </transform>.
    • The position attribute contains an array of three values that modify the X, Y, and Z values of the object(s) that the Transform Tag encompasses.
    • The values inside the position attribute are addative.
    • This attribute is mandatory.

Syntax

<canvas>
 <transform position="1.0, 1.0, 3.0">
  <cube name="mycube" position="0.0, 0.0, 0.0" />
  <sphere name="mysphere" position="10.0, 20.0, 30.0" />
 </transform>
</canvas>

References

  • None.