Difference between revisions of "CopyTransform"

From Headbone Creative
Jump to: navigation, search
(Initial page, includes API information and categories)
 

Latest revision as of 19:53, 18 April 2013

This allows you to make an object's trasform copy the movement, rotation, and/or scale of a different transform. This is useful for creating dynamic "skybox" scenes, among other things.

Contents

[edit] Public Variables

[edit] target : Transform

This is the object whose transform will be copied.

[edit] targetTag : string

This is a tag that is used to look up a target if one isn't set in the editor. If the target is set in the editor directly, this is ignored.

[edit] copyMove : bool

When true, this tells the object to copy the movement of the target object.

[edit] moveRatio : float

This is how much of the movement from the target is applied to the current object.

If set to 1, the current object will move at the same rate as the target. Less than 1 but greater than 0 will make the object move slower than the target. Less than 0 will move the object opposite of the way the target is moving. Greater than 1 will move the object faster than the target.

[edit] useLocalPosition : bool

This indicates whether or not the local or world positions should be used when moving the object.

[edit] copyRotate : bool

When true, this tells the object to copy the rotation of the target object.

[edit] useLocalRotation : bool

This indicates whether or not the local or world space should be used when rotating the object.

[edit] copyScale : bool

When true, this tells the object to copy the scale of the target object.

[edit] scaleRatio : float

This is how much of the scale from the target is applied to the current object.

If set to 1, the current object will scale at the same rate as the target. Less than 1 but greater than 0 will make the object scale more slowly than the target. Less than 0 will scale the object opposite of the way the target is scaling. Greater than 1 will scale the object faster than the target.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox