Class ScaleToTransformMotion
- Namespace
- FriedSynapse.FlowEnt.Motions.Echo.Transforms
Scales the transform towards the target using the deltaTime as a step. If target is scaled it'll continue to move towards.
public class ScaleToTransformMotion : ScaleToVectorMotion, IEchoMotion, IMotion
- Inheritance
-
AbstractEchoMotion<Transform>AbstractFloatSpeedMotion<Transform>AbstractFloatSpeedTypeMotion<Transform>ScaleToTransformMotion
- Implements
- Inherited Members
- Extension Methods
Constructors
ScaleToTransformMotion(Transform, Transform, float, SpeedType)
public ScaleToTransformMotion(Transform item, Transform target, float speed = 1, SpeedType speedType = SpeedType.Linear)
Parameters
Fields
target
protected readonly Transform target
Field Value
- Transform
Methods
OnUpdate(float)
public override void OnUpdate(float deltaTime)
Parameters
deltaTime
float