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
AnimationLayer
The model's animation component
public AnimationLayerComponent? AnimationLayer { get; }
Property Value
AnimationSpeed
The speed of the model's current animation. Note, this value gets set every frame.
public float AnimationSpeed { get; set; }
Property Value
CollisionPosition
The position of the model's collision box
public ref Vector3 CollisionPosition { get; }
Property Value
CurrentAnimation
Gets the current animation of the model
public ref AnimationId CurrentAnimation { get; }
Property Value
Forward
The model's forward vector
public Vector3 Forward { get; }
Property Value
Frozen
Freezes the model and pauses all processing
public bool Frozen { get; set; }
Property Value
MaxAnimationFrame
The frame count of the model's current animation
public float MaxAnimationFrame { get; set; }
Property Value
MotionLists
The model's motion lists.
public IEnumerable<MotionList> MotionLists { get; }
Property Value
Position
The position of the model
public ref Vector3 Position { get; }
Property Value
Rotation
The rotation of the model
public ref MtQuaternion Rotation { get; }
Property Value
Size
The size of the model
public ref Vector3 Size { get; }
Property Value
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
floatThe 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
Vector3The target position
Remarks
Use this function if you need to move a model and ignore walls.