Table of Contents

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
object
TransformInterpolateBlock
Implements
Derived
Inherited Members

Constructors

TransformInterpolateBlock(double, double, LunyVector3, double)

protected TransformInterpolateBlock(double speed, double deadZone, LunyVector3 axisLock, double responsiveness)

Parameters

speed double
deadZone double
axisLock LunyVector3
responsiveness double

Fields

AxisLock

protected readonly LunyVector3 AxisLock

Field Value

LunyVector3

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