Table of Contents

Class RelativeMotion

Namespace
TrinketTinker.Companions.Motions
Assembly
TrinketTinker.dll

Companion's offset is adjusted depending on player facing direction

public sealed class RelativeMotion : BaseStaticMotion<RelativeArgs>, IMotion
Inheritance
RelativeMotion
Implements
Inherited Members

Constructors

RelativeMotion(TrinketTinkerCompanion, MotionData, VariantData)

Companion's offset is adjusted depending on player facing direction

public RelativeMotion(TrinketTinkerCompanion companion, MotionData mdata, VariantData vdata)

Parameters

companion TrinketTinkerCompanion
mdata MotionData
vdata VariantData

Methods

GetOffset()

Get offset

public override Vector2 GetOffset()

Returns

Vector2

GetPositionalLayerDepth(Vector2)

Get layer depth based on position

protected override float GetPositionalLayerDepth(Vector2 offset)

Parameters

offset Vector2

Returns

float