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
- Inheritance
-
objectTransformInterpolateTowardsVariableBlock
- Implements
- Derived
- Inherited Members
Constructors
TransformInterpolateTowardsVariableBlock(VariableBlock<LunyVector3>, double, double, LunyVector3, double)
protected TransformInterpolateTowardsVariableBlock(VariableBlock<LunyVector3> targetScale, double speed, double deadZone, LunyVector3 axisLock, double responsiveness)
Parameters
targetScaleVariableBlock<LunyVector3>speeddoubledeadZonedoubleaxisLockLunyVector3responsivenessdouble
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 bool TryGetScaleDelta(IScriptRuntimeContext ctx, out LunyVector3 current, out LunyVector3 maskedTarget)
Parameters
ctxIScriptRuntimeContextcurrentLunyVector3maskedTargetLunyVector3
Returns
- bool