TargetConstraint

CopyScaleConstraint

A constraint which makes the constrained object inherit the target's scale.

Constraints are used to set up various relations between objects by affecting their position, rotation and scale. Can be used with the Object3D.constraints property.

Constructor

CopyScaleConstraint(target : Object3D)

target — constraint's target object.

Properties

See the base TargetConstraint class for common properties.

.isCopyScaleConstraint : Boolean

Used to check whether this or derived classes are copy scale constraints. Default is true.

.influence : Float

The percentage of influence the constraint has on the object. Default is 1.0 (100%).

.power : Float

Raises the copied scale to the specified arbitrary power. Default is 1.0.

.type : String

The constraint's type. Equals to 'CopyScaleConstraint'.

.useAdd : Boolean

Uses addition instead of multiplication in the implementation of the useOffset option. Default is false.

.useMakeUniform : Boolean

Applies an uniform scaling factor to all axes of the owner that achieves the same overall change in volume. Default is false.

.useOffset : Boolean

When enabled, the constraint combines (multiplies) the copied scale with the owner’s scale, instead of replacing it. Default is false.

.useX : Boolean

Uses the X axis. Default is true.

.useY : Boolean

Uses the Y axis. Default is true.

.useZ : Boolean

Uses the Z axis. Default is true.

Methods

See the base TargetConstraint class for common methods.

Puzzles

You can use the copy transform puzzle to apply CopyScaleConstraint in a visual manner.

Source

For more info on how to obtain the source code of this module see this page.