Table of Contents

Class Model

Namespace
SharpPluginLoader.Core.Models
Assembly
SharpPluginLoader.Core.dll

Represents an instance of a uMhModel class

public class Model : Unit
Inheritance
Model
Derived
Inherited Members

Constructors

Model()

public Model()

Model(nint)

public Model(nint instance)

Parameters

instance nint

Properties

AnimationFrame

The current frame of the model's current animation

public float AnimationFrame { get; set; }

Property Value

float

AnimationLayer

The model's animation component

public AnimationLayerComponent? AnimationLayer { get; }

Property Value

AnimationLayerComponent

AnimationSpeed

The speed of the model's current animation. Note, this value gets set every frame.

public float AnimationSpeed { get; set; }

Property Value

float

CollisionPosition

The position of the model's collision box

public ref Vector3 CollisionPosition { get; }

Property Value

Vector3

CurrentAnimation

Gets the current animation of the model

public ref AnimationId CurrentAnimation { get; }

Property Value

AnimationId

Forward

The model's forward vector

public Vector3 Forward { get; }

Property Value

Vector3

Frozen

Freezes the model and pauses all processing

public bool Frozen { get; set; }

Property Value

bool

MaxAnimationFrame

The frame count of the model's current animation

public float MaxAnimationFrame { get; set; }

Property Value

float

MotionLists

The model's motion lists.

public IEnumerable<MotionList> MotionLists { get; }

Property Value

IEnumerable<MotionList>

Position

The position of the model

public ref Vector3 Position { get; }

Property Value

Vector3

Rotation

The rotation of the model

public ref MtQuaternion Rotation { get; }

Property Value

MtQuaternion

Size

The size of the model

public ref Vector3 Size { get; }

Property Value

Vector3

Methods

PauseAnimations()

Pauses the model's current animation

public void PauseAnimations()

Resize(float)

Resizes the model on all axes to the given size

public void Resize(float size)

Parameters

size float

The new size of the model

ResumeAnimations()

Resumes the model's current animation

public void ResumeAnimations()

Teleport(Vector3)

Teleports the model to the given position

public void Teleport(Vector3 position)

Parameters

position Vector3

The target position

Remarks

Use this function if you need to move a model and ignore walls.