Language
Edit

Vector3Smoothed Struct

Definition

Encapsulated vector that smoothly moves toward a goal.

[System.Serializable]
public struct Vector3Smoothed
[<System.Serializable>]
type Vector3Smoothed = struct
Public Structure Vector3Smoothed
Inheritance
Vector3Smoothed
Attributes

Constructors

Name Description
Vector3Smoothed(Vector3, Single)

Initializes a Vector3Smoothed struct.

Properties

Name Description
Current

The current value of the vector.

Goal

The desired destination value for the vector.

SmoothTime

The length of time the smoothing should use to reach the goal.

Methods

Name Description
SetGoal(Vector3)

Updates the value of the Goal property.

Update(Single)

Update the vector towards the goal.

Applies to