Table of Contents

Class M2CompBoneTbc

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

A bone (TBC+): compressed-quaternion rotations plus the debug name CRC; the track era inside follows the entity version.

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

Constructors

M2CompBoneTbc()

public M2CompBoneTbc()

M2CompBoneTbc(M2CompBoneTbc)

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

public M2CompBoneTbc(M2CompBoneTbc other)

Parameters

other M2CompBoneTbc

Properties

BoneNameCrc

CRC of the authoring bone name (debug only).

public uint BoneNameCrc { get; set; }

Property Value

uint

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 compressed quaternions.

public M2TrackCompQuatVanillaToTbc Rotation { get; set; }

Property Value

M2TrackCompQuatVanillaToTbc

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 ==(M2CompBoneTbc?, M2CompBoneTbc?)

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

Parameters

l M2CompBoneTbc
r M2CompBoneTbc

Returns

bool

operator !=(M2CompBoneTbc?, M2CompBoneTbc?)

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

Parameters

l M2CompBoneTbc
r M2CompBoneTbc

Returns

bool