Open main menu

CDOT Wiki β

Canvas 3D - Transform Tags

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.