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

targetScale VariableBlock<LunyVector3>
speed double
deadZone double
axisLock LunyVector3
responsiveness double

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 bool TryGetScaleDelta(IScriptRuntimeContext ctx, out LunyVector3 current, out LunyVector3 maskedTarget)

Parameters

ctx IScriptRuntimeContext
current LunyVector3
maskedTarget LunyVector3

Returns

bool