Table of Contents

Class QuakeFace

Namespace
PopcorningGuineaPig.Engine.Quake
Assembly
PopcorningGuineaPig.Engine.dll

Represents a face (plane) in a Quake brush.

public class QuakeFace
Inheritance
QuakeFace
Inherited Members

Constructors

QuakeFace()

Creates a new empty face.

public QuakeFace()

QuakeFace(Vector3, Vector3, Vector3, string)

Creates a new face with the specified points and texture.

public QuakeFace(Vector3 p1, Vector3 p2, Vector3 p3, string textureName)

Parameters

p1 Vector3

The first point on the plane.

p2 Vector3

The second point on the plane.

p3 Vector3

The third point on the plane.

textureName string

The name of the texture to apply to the face.

Properties

Distance

The distance of the plane from the origin.

public float Distance { get; }

Property Value

float

Normal

The normal vector of the plane.

public Vector3 Normal { get; }

Property Value

Vector3

Plane1

The first point on the plane.

public Vector3 Plane1 { get; set; }

Property Value

Vector3

Plane2

The second point on the plane.

public Vector3 Plane2 { get; set; }

Property Value

Vector3

Plane3

The third point on the plane.

public Vector3 Plane3 { get; set; }

Property Value

Vector3

Rotation

The rotation of the texture in degrees.

public float Rotation { get; set; }

Property Value

float

TextureName

The name of the texture to apply to the face.

public string TextureName { get; set; }

Property Value

string

UAxis

Valve [u] axis in Quake space. Null on Standard faces.

public Vector3? UAxis { get; set; }

Property Value

Vector3?

VAxis

Valve [v] axis in Quake space. Null on Standard faces.

public Vector3? VAxis { get; set; }

Property Value

Vector3?

XOffset

The X offset of the texture.

public float XOffset { get; set; }

Property Value

float

XScale

The X scale of the texture.

public float XScale { get; set; }

Property Value

float

YOffset

The Y offset of the texture.

public float YOffset { get; set; }

Property Value

float

YScale

The Y scale of the texture.

public float YScale { get; set; }

Property Value

float