Class TransformInterpolateBlock
- Namespace
- LunyScript.Blocks
- Assembly
- LunyScript.dll
Abstract base for blocks that interpolate or step a transform property toward a target over time. Holds the shared optional parameters: speed, deadZone, axisLock, responsiveness.
public abstract class TransformInterpolateBlock : ScriptActionBlock, IScriptBlock
- Inheritance
-
objectTransformInterpolateBlock
- Implements
- Derived
- Inherited Members
Constructors
TransformInterpolateBlock(double, double, LunyVector3, double)
protected TransformInterpolateBlock(double speed, double deadZone, LunyVector3 axisLock, double responsiveness)
Parameters
speeddoubledeadZonedoubleaxisLockLunyVector3responsivenessdouble
Fields
AxisLock
protected readonly LunyVector3 AxisLock
Field Value
DeadZone
protected readonly float DeadZone
Field Value
- float
Responsiveness
protected readonly float Responsiveness
Field Value
- float
Speed
protected readonly float Speed
Field Value
- float
Methods
ComputeStep()
Returns Speed * deltaTime * Responsiveness, ready to use as a step or lerp t value.
protected float ComputeStep()
Returns
- float
TowardsToString()
protected string TowardsToString()
Returns
- string