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 : ActionBlock, IScriptBlock
Expand Details ...
Inheritance
Object
TransformInterpolateBlock
Implements
Derived
Inherited Members

Constructors

TransformInterpolateBlock(Double, Double, LunyVector3, Double)

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

Parameters

Type Name Description
Double
speed
Double
deadZone
LunyVector3
axisLock
Double
responsiveness

Fields

AxisLock

protected readonly LunyVector3 AxisLock

Field Value

LunyVector3

DeadZone

protected readonly Single DeadZone

Field Value

Single

Responsiveness

protected readonly Single Responsiveness

Field Value

Single

Speed

protected readonly Single Speed

Field Value

Single

Methods

ComputeStep()

Returns Speed * deltaTime * Responsiveness, ready to use as a step or lerp t value.

protected Single ComputeStep()

Returns

Single

TowardsToString()

protected String TowardsToString()

Returns

String