Class RotateToTransformMotion
- Namespace
- FriedSynapse.FlowEnt.Motions.Echo.Transforms
Rotates the transform towards the target using the deltaTime as a step. If target is rotated it'll continue to rotate towards.
public class RotateToTransformMotion : RotateToQuaternionMotion, IEchoMotion, IMotion
- Inheritance
-
AbstractEchoMotion<Transform>AbstractFloatSpeedMotion<Transform>AbstractFloatSpeedTypeMotion<Transform>RotateToTransformMotion
- Implements
- Inherited Members
- Extension Methods
Constructors
RotateToTransformMotion(Transform, Transform, float, SpeedType)
public RotateToTransformMotion(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