Table of Contents

Class ScaleToVectorMotion

Scales the transform towards the target using the deltaTime as a step.

public class ScaleToVectorMotion : AbstractFloatSpeedTypeMotion<Transform>, IEchoMotion, IMotion
Inheritance
ScaleToVectorMotion
Implements
Derived
Inherited Members
Extension Methods

Constructors

ScaleToVectorMotion(Transform, Vector3, float, SpeedType)

public ScaleToVectorMotion(Transform item, Vector3 target, float speed = 1, SpeedType speedType = SpeedType.Linear)

Parameters

item Transform
target Vector3
speed float
speedType SpeedType

Fields

target

protected Vector3 target

Field Value

Vector3

Methods

OnUpdate(float)

public override void OnUpdate(float deltaTime)

Parameters

deltaTime float