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

From CDOT Wiki
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
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 Transform Tag is a way of moving multiple objects in a direction all at the same time. Any Tags that are written within the Transform Tag are moved by an amount specified by its attribute.  
  
 
== 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 additive.
 +
** 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.

Latest revision as of 19:51, 20 October 2006

Transform Tag Reference

Back To XML 3D Main Page

Introduction

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

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 additive.
    • 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.