Show / Hide Table of Contents

Class BodyPart

Agent body parts

Inheritance
System.Object
BodyPart
Namespace: Mannequin.Bindings
Assembly: Collapse.dll
Syntax
public class BodyPart : object

Constructors

BodyPart(Texture, PositioningData, EBodyPartType, BodyPart)

Create a new body part.

Declaration
public BodyPart(Texture texture, PositioningData pos, EBodyPartType slot, BodyPart linkedTo = null)
Parameters
Type Name Description
Texture texture

The texture to show on this body part

PositioningData pos

The positioning of this body part

EBodyPartType slot

The type of body part that this is

BodyPart linkedTo

The body part this is linked to

Properties

AbsolutePos

Get the absolute position of this body part (note: not a JSON property)

Declaration
public Vector AbsolutePos { get; }
Property Value
Type Description
Vector

The absolute position of this body part

AnimEndState

If this animation loops, this is the "end" state of the animation

Declaration
public PositioningData AnimEndState { get; set; }
Property Value
Type Description
PositioningData

AnimStartState

If this animation loops, this is the "start" state of the animation

Declaration
public PositioningData AnimStartState { get; set; }
Property Value
Type Description
PositioningData

GoalState

The positioning this body part should have at the end of its current animation

Declaration
public PositioningData GoalState { get; set; }
Property Value
Type Description
PositioningData

InitState

The position this body part should have when its animation is started for the first time

Declaration
public PositioningData InitState { get; set; }
Property Value
Type Description
PositioningData

LinkedTo

The body part this is linked to

Declaration
public BodyPart LinkedTo { get; set; }
Property Value
Type Description
BodyPart

Loop

Loop this body part's animation?

Declaration
public bool Loop { get; set; }
Property Value
Type Description
System.Boolean

Slot

The type of body part that this is

Declaration
public EBodyPartType Slot { get; set; }
Property Value
Type Description
EBodyPartType

State

The positioning of this body part

Declaration
public PositioningData State { get; set; }
Property Value
Type Description
PositioningData

Texture

The texture of this body part

Declaration
public Texture Texture { get; set; }
Property Value
Type Description
Texture

Methods

Animate(PositioningData, PositioningData, Int32)

Start a new animation. Will move from the current position to startPos, then to endPos.

Declaration
public void Animate(PositioningData startPos, PositioningData endPos, int timeInMs)
Parameters
Type Name Description
PositioningData startPos
PositioningData endPos
System.Int32 timeInMs

AnimateTo(PositioningData, Int32)

Animate this body part to a particular position

Declaration
public void AnimateTo(PositioningData newPos, int timeInMs)
Parameters
Type Name Description
PositioningData newPos

Position to animate to

System.Int32 timeInMs

How long this animation should take to complete

Reset(Int32)

Reset the position of this body part

Declaration
public void Reset(int animateLength = 0)
Parameters
Type Name Description
System.Int32 animateLength
Back to top © 2020 Anarkis Gaming. All rights reserved. Generated by DocFX