Table of Contents

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
Object
TransformInterpolateTowardsVariableBlock
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

Type Name Description
VariableBlock<LunyVector3>
targetScale
Double
speed
Double
deadZone
LunyVector3
axisLock
Double
responsiveness

Fields

TargetScale

protected readonly VariableBlock<LunyVector3> TargetScale

Field Value

VariableBlock<LunyVector3>

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
IScriptRuntimeContext
ctx
LunyVector3
current
LunyVector3
maskedTarget

Returns

Boolean