Class TransformInterpolateTowardsVariableBlock
- Namespace
- LunyScript.Blocks /
- Assembly
- LunyScript.dll
Abstract base for Towards blocks whose target is a VariableBlock value (Scale towards).
public abstract class TransformInterpolateTowardsVariableBlock : TransformInterpolateBlock, IScriptBlock
Expand Details ...
- Inheritance
-
ObjectTransformInterpolateTowardsVariableBlock
- Implements
- Derived
- Inherited Members
-
- TransformInterpolateBlock.Speed
- TransformInterpolateBlock.DeadZone
- TransformInterpolateBlock.AxisLock
- TransformInterpolateBlock.Responsiveness
- TransformInterpolateBlock.ComputeStep()
- TransformInterpolateBlock.TowardsToString()
- ActionBlock.IsNullOrEmpty(ActionBlock[])
- ActionBlock.Execute(IScriptRuntimeContext)
Constructors
TransformInterpolateTowardsVariableBlock(VariableBlock<LunyVector3>, Double, Double, LunyVector3, Double)
protected TransformInterpolateTowardsVariableBlock(VariableBlock<LunyVector3> targetScale, Double speed, Double deadZone, LunyVector3 axisLock, Double responsiveness)
Parameters
| Type | Name | Description |
|---|---|---|
targetScale |
||
speed |
||
deadZone |
||
axisLock |
||
responsiveness |
Fields
TargetScale
protected readonly VariableBlock<LunyVector3> TargetScale
Field Value
Methods
TowardsVariableToString()
protected String TowardsVariableToString()
Returns
- String
TryGetScaleDelta(IScriptRuntimeContext, out LunyVector3, out LunyVector3)
Computes the axis-masked scale delta and masked target. Returns false (and skips) when the distance is within the dead zone.
protected Boolean TryGetScaleDelta(IScriptRuntimeContext ctx, out LunyVector3 current, out LunyVector3 maskedTarget)
Parameters
| Type | Name | Description |
|---|---|---|
ctx |
||
current |
||
maskedTarget |
Returns
- Boolean