Vector3Smoothed Struct

Definition

Encapsulated vector that smoothly moves toward a goal.

C#
[System.Serializable]
public struct Vector3Smoothed
Inheritance
Vector3Smoothed
Attributes

Constructors

Properties

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

SetGoal(Vector3)

Updates the value of the Goal property.

Update(Single)

Update the vector towards the goal.

Applies to

Táirge Leaganacha
MRTK3 Spatial Manipulation 3.0, 3.1, 3.2