Class OrbitMotion
- Namespace
- TrinketTinker.Companions.Motions
- Assembly
- TrinketTinker.dll
Companion orbits around a point
public class OrbitMotion : BaseStaticMotion<OrbitArgs>, IMotion- Inheritance
- 
      
      
      
      OrbitMotion
- Implements
- Inherited Members
Constructors
OrbitMotion(TrinketTinkerCompanion, MotionData, VariantData)
Companion orbits around a point
public OrbitMotion(TrinketTinkerCompanion companion, MotionData mdata, VariantData vdata)Parameters
- companionTrinketTinkerCompanion
- mdataMotionData
- vdataVariantData
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
- offsetVector2
Returns
GetShadowOffset(Vector2)
Get shadow offset, same as offset but -
public override Vector2 GetShadowOffset(Vector2 offset)Parameters
- offsetVector2
Returns
- Vector2
GetTextureScale()
Get texture draw scale.
protected override Vector2 GetTextureScale()Returns
- Vector2
UpdateGlobal(GameTime, GameLocation)
Calculates circular motion using cos for x and sin for y
public override void UpdateGlobal(GameTime time, GameLocation location)Parameters
- timeGameTime
- locationGameLocation