CopyScaleConstraint - Verge3D User Manual - Soft8Soft
Description: Learn how to use CopyScaleConstraint in your interactive 3D apps made with Verge3D

TargetConstraint →

# CopyScaleConstraint

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

To influence some object, push a CopyScaleConstraint instance into the Object3D.constraints array.

## Constructor

### CopyScaleConstraint(target : Object3D)

target — constraint's target object.

## Properties

See the base TargetConstraint class for common properties.

### # .influence : Float

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

### # .isCopyScaleConstraint : Boolean

Read-only flag to check if a given object is of type CopyScaleConstraint.

### # .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.