Class Vector3MoveTowards
Moves a 3D vector towards a target.
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitCategory("Math/Vector 3")]
[UnitTitle("Move Towards")]
public sealed class Vector3MoveTowards : MoveTowards<Vector3>, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Properties
defaultCurrent
Declaration
protected override Vector3 defaultCurrent { get; }
Property Value
Type | Description |
---|---|
Vector3 |
Overrides
Unity.VisualScripting.MoveTowards<UnityEngine.Vector3>.defaultCurrent
defaultTarget
Declaration
protected override Vector3 defaultTarget { get; }
Property Value
Type | Description |
---|---|
Vector3 |
Overrides
Unity.VisualScripting.MoveTowards<UnityEngine.Vector3>.defaultTarget
Methods
Operation(Vector3, Vector3, Single)
Declaration
public override Vector3 Operation(Vector3 current, Vector3 target, float maxDelta)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | current | |
Vector3 | target | |
Single | maxDelta |
Returns
Type | Description |
---|---|
Vector3 |
Overrides
Unity.VisualScripting.MoveTowards<UnityEngine.Vector3>.Operation(UnityEngine.Vector3, UnityEngine.Vector3, System.Single)