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

From CDOT Wiki
Jump to: navigation, search
 
Line 5: Line 5:
 
== Introduction ==
 
== 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.  
+
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 ==
Line 12: Line 12:
 
** '''Usage:''' <transform position="1.0, 1.0, 1.0"> ... </transform>.
 
** '''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 ''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.
+
** The values inside the position attribute are additive.
 
** This attribute is mandatory.
 
** This attribute is mandatory.
  

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.