(Redirected from SmoothTransform (Component))
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Component image
Smooth transform is a component that is used to create a "lag behind" or "trailing" effect on slots or objects that follow another object. The slot this controls will try to return to it's rest position, iteratively getting closer and closer until in eventuality reaching it's target location at rest.
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. |
InterpolationSpace
|
direct RootSpace | The coordinate space that should be used to check the delta of the transforms in. If set to user space and parented under the user's hand, this slot will only lag behind (or smooth) when the user moves their hand, but not when they walk around. This can also be set to a slot for similar effects without a user. |
TargetPosition
|
Float3 | The local transform position that this slot is trying to get to. |
TargetRotation
|
FloatQ | the local transform rotation that this slot is trying to get to. |
TargetScale
|
Float3 | The local transform scale that this slot is trying to get to. |
Position
|
field drive of Float3 | The position field to drive with the smoothed value (auto filled with the position field of the slot this is on. |
Rotation
|
field drive of FloatQ | The rotation field to drive with the smoothed value (auto filled with the rotation field of the slot this is on. |
Scale
|
field drive of Float3 | The scale field to drive with the smoothed value (auto filled with the scale field of the slot this is on. |
SmoothSpeed
|
Float | How fast or slow this slot is at catching up to it's target location. Not a set number of seconds since this component iteratively smooths. |
_updateIndex
|
Int | Whether to do this smooth transform before or after other smooth transforms in the same slot hiearchy. |
Usage
Examples
Useful in making a little fairy that follows the user around. Or a trail of orbs that float along side the user. Or floating accessories/horns/trinkets that are attached to a user that follow them around. Or an object that loosely follows a racing ship.