Canvas 3D - Transform Tags

From CDOT Wiki
Revision as of 19:19, 20 October 2006 by RealMarkP (talk | contribs)
Jump to: navigation, search

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.