Table of Contents

Class CAaBspNode

Namespace
WoWLib.Formats.WMO.Group.Chunks
Assembly
WoWLib.dll

One MOBN BSP node for collision: a split plane or a leaf referencing faces through MOBR.

public class CAaBspNode : IDisposable
Inheritance
CAaBspNode
Implements
Inherited Members

Constructors

CAaBspNode()

public CAaBspNode()

CAaBspNode(ushort, short, short, ushort, uint, float)

public CAaBspNode(ushort flags, short negChild, short posChild, ushort nFaces, uint faceStart, float planeDist)

Parameters

flags ushort
negChild short
posChild short
nFaces ushort
faceStart uint
planeDist float

CAaBspNode(CAaBspNode)

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

public CAaBspNode(CAaBspNode other)

Parameters

other CAaBspNode

Properties

FaceStart

First face index in MOBR.

public uint FaceStart { get; set; }

Property Value

uint

Flags

0-2: split axis, 0x4: leaf.

public ushort Flags { get; set; }

Property Value

ushort

NFaces

Face count in MOBR (leaves).

public ushort NFaces { get; set; }

Property Value

ushort

NegChild

Negative-side child node, -1 for none.

public short NegChild { get; set; }

Property Value

short

PlaneDist

Split plane distance from the model origin.

public float PlaneDist { get; set; }

Property Value

float

PosChild

Positive-side child node, -1 for none.

public short PosChild { get; set; }

Property Value

short

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 virtual void Dispose()