Class MoveTowards<T>
Inherited Members
Namespace: Ludiq.Bolt
Syntax
[Obsolete("Use Mathf or Vector Move Towards instead")]
public abstract class MoveTowards<T> : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphChild, IObservableDisposable, IDisposable, INotifiedCollectionChild<IGraph>, ICollectionChild<IGraph>, IPrewarmable, IIdentifiable, INotifyPropertyChanged, ISerializationCallbackReceiver
Type Parameters
| Name | Description |
|---|---|
| T |
Properties
current
The current value.
Declaration
[DoNotSerialize]
public ValueInput current { get; }
Property Value
| Type | Description |
|---|---|
| ValueInput |
defaultCurrent
Declaration
[DoNotSerialize]
protected virtual T defaultCurrent { get; }
Property Value
| Type | Description |
|---|---|
| T |
defaultTarget
Declaration
[DoNotSerialize]
protected virtual T defaultTarget { get; }
Property Value
| Type | Description |
|---|---|
| T |
maxDelta
The maximum scalar increment between values.
Declaration
[DoNotSerialize]
public ValueInput maxDelta { get; }
Property Value
| Type | Description |
|---|---|
| ValueInput |
perSecond
Declaration
[Serialize]
[Inspectable]
[UnitSettingDisplay("Per Second")]
[InspectorToggleLeft]
public bool perSecond { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
result
The incremented value.
Declaration
[DoNotSerialize]
[UnitPortDisplay(showLabel = false, primary = true)]
public ValueOutput result { get; }
Property Value
| Type | Description |
|---|---|
| ValueOutput |
target
The target value.
Declaration
[DoNotSerialize]
public ValueInput target { get; }
Property Value
| Type | Description |
|---|---|
| ValueInput |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Ludiq.Bolt.Unit<Ludiq.Bolt.FlowGraph>.Definition()
Operation(T, T, Single)
Declaration
public abstract T Operation(T current, T target, float maxDelta)
Parameters
| Type | Name | Description |
|---|---|---|
| T | current | |
| T | target | |
| Single | maxDelta |
Returns
| Type | Description |
|---|---|
| T |