CopyTransform

From Headbone Creative
Jump to: navigation, search

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

Public Variables

target : Transform

This is the object whose transform will be copied.

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.

copyMove : bool

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

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.

useLocalPosition : bool

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

copyRotate : bool

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

useLocalRotation : bool

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

copyScale : bool

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

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