Component:Scaler

From Resonite Wiki
Revision as of 18:09, 2 February 2025 by 989onan (talk | contribs) (add infi)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Component image 
Scaler component as seen in the Scene Inspector

The Scaler component scales a target scale based on the distance of the slot this component is on from ""Point"" = (ScaleOffset in ScaleSource's transform space) with the distance of both points calculated in ScaleSpace.

If the slots are all under root, the scaleTarget is targeting the scale of this slot, ScaleSource is set to root, ScaleMode is set to 'FullIndependent', ScaleOffest is set to (0,0,0), ScaleMultiplier is set to (1,1,1), and the slot this component is on is an unmodified default cube, the edge of at least one part of the cube on this slot will match perfectly to Root.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't.
ScaleOffset Float3 The offset of point A to ScaleSource.
ScaleMultiplier Float3 How much to multiply the strength of the distance from A to B after conversion has on scale.
ScaleSource Slot The source space of point A.
ScaleMode Mode How to restrict the distance calculations for scaling certain axies.
ScaleSpace direct RootSpace The space to convert A and B to for distance measurement.
scaleTarget [[Type:field drive of Float3|field drive of Float3]] The field to drive to the distance from A to B after conversion to space ScaleSpace and applying ScaleMode restrictions, and then muliplying by 2 * ScaleMultiplier.

Mode

Values
Name Value Description
FullUniform 0 The distance calculation from point A to B should be equal on all axies.
XYUniform 1 The distance calculation from point A to B should be done between the XY plane and applied to X and Y axis equally before calculating Z distance separately.
YZUniform 2 The distance calculation from point A to B should be done between the YZ plane and applied to Y and Z axis equally before calculating X distance separately.
XZUniform 3 The distance calculation from point A to B should be done between the XZ plane and applied to X and Z axis equally before calculating Y distance separately.
FullIndependent 4 The distance calculation from point A to B should be done separately for each axis.

Usage

Attach to a slot and fill the fields to start using this component.

Examples

This article or section is a Stub. You can help the Resonite Wiki by expanding it.


See Also