Table of Contents

Class M2CameraVanillaToTbc

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

A camera, pre-Cata layout: a static diagonal FOV plus position/target/roll spline tracks.

public class M2CameraVanillaToTbc : M2Camera, IDisposable
Inheritance
M2CameraVanillaToTbc
Implements
Inherited Members

Constructors

M2CameraVanillaToTbc()

public M2CameraVanillaToTbc()

M2CameraVanillaToTbc(M2CameraVanillaToTbc)

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

public M2CameraVanillaToTbc(M2CameraVanillaToTbc other)

Parameters

other M2CameraVanillaToTbc

Properties

FarClip

Far clip distance.

public float FarClip { get; set; }

Property Value

float

Fov

Diagonal field of view, radians.

public float Fov { get; set; }

Property Value

float

NearClip

Near clip distance.

public float NearClip { get; set; }

Property Value

float

PositionBase

Pivot point the position splines are relative to.

public C3Vector PositionBase { get; set; }

Property Value

C3Vector

Positions

Spline track moving the camera, one spline per segment.

public M2TrackSplineC3VectorVanillaToTbc Positions { get; set; }

Property Value

M2TrackSplineC3VectorVanillaToTbc

Roll

0 .. 2*pi.

public M2TrackSplineFloatVanillaToTbc Roll { get; set; }

Property Value

M2TrackSplineFloatVanillaToTbc

TargetPosition

Spline track moving the look-at target, one spline per segment.

public M2TrackSplineC3VectorVanillaToTbc TargetPosition { get; set; }

Property Value

M2TrackSplineC3VectorVanillaToTbc

TargetPositionBase

Pivot point the target splines are relative to.

public C3Vector TargetPositionBase { get; set; }

Property Value

C3Vector

Type

0 portrait, 1 character info, -1 flyby.

public uint Type { get; set; }

Property Value

uint

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

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

Parameters

l M2CameraVanillaToTbc
r M2CameraVanillaToTbc

Returns

bool

operator !=(M2CameraVanillaToTbc?, M2CameraVanillaToTbc?)

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

Parameters

l M2CameraVanillaToTbc
r M2CameraVanillaToTbc

Returns

bool