Table of Contents

Class M2CompBoneVanilla

Namespace
WoWLib.Formats.M2.Root.Record
Assembly
WoWLib.dll

A bone, vanilla layout: raw-quaternion rotations, no name CRC.

public class M2CompBoneVanilla : M2CompBone, IDisposable
Inheritance
M2CompBoneVanilla
Implements
Inherited Members

Constructors

M2CompBoneVanilla()

public M2CompBoneVanilla()

M2CompBoneVanilla(M2CompBoneVanilla)

Copy-construct: a deep copy of other (the C++ copy constructor).

public M2CompBoneVanilla(M2CompBoneVanilla other)

Parameters

other M2CompBoneVanilla

Properties

Flags

See BoneFlags.

public BoneFlags Flags { get; set; }

Property Value

BoneFlags

KeyBoneId

Key-bone-lookup back reference, -1 if none.

public int KeyBoneId { get; set; }

Property Value

int

ParentBone

Parent bone index, -1 for roots.

public short ParentBone { get; set; }

Property Value

short

Pivot

The bone's pivot point.

public C3Vector Pivot { get; set; }

Property Value

C3Vector

Rotation

Rotation keyframes as raw quaternions.

public M2TrackC4QuaternionVanillaToTbc Rotation { get; set; }

Property Value

M2TrackC4QuaternionVanillaToTbc

Scale

Scale keyframes.

public M2TrackC3VectorVanillaToTbc Scale { get; set; }

Property Value

M2TrackC3VectorVanillaToTbc

SubmeshId

Mesh part id.

public ushort SubmeshId { get; set; }

Property Value

ushort

Translation

Translation keyframes, relative to the parent bone.

public M2TrackC3VectorVanillaToTbc Translation { get; set; }

Property Value

M2TrackC3VectorVanillaToTbc

Methods

Dispose()

Release the native object now. Optional: the finalizer releases it on collection anyway - dispose (or using) when you want native memory back promptly.

public override void Dispose()

Operators

operator ==(M2CompBoneVanilla?, M2CompBoneVanilla?)

public static bool operator ==(M2CompBoneVanilla? l, M2CompBoneVanilla? r)

Parameters

l M2CompBoneVanilla
r M2CompBoneVanilla

Returns

bool

operator !=(M2CompBoneVanilla?, M2CompBoneVanilla?)

public static bool operator !=(M2CompBoneVanilla? l, M2CompBoneVanilla? r)

Parameters

l M2CompBoneVanilla
r M2CompBoneVanilla

Returns

bool