Table of Contents

Struct Hull

Namespace
ValveResourceFormat.ResourceTypes.RubikonPhysics.Shapes
Assembly
ValveResourceFormat.dll

Represents a convex hull shape.

public readonly struct Hull

Inherited Members

Constructors

Hull(KVObject)

Initializes a new instance of the ValveResourceFormat.ResourceTypes.RubikonPhysics.Shapes.Hull struct.

public Hull(KVObject data)

Parameters

data KVObject

Properties

Centroid

Gets the centroid of the hull.

public Vector3 Centroid { get; }

Property Value

Vector3

Data

Gets the raw data.

public KVObject Data { get; }

Property Value

KVObject

Max

Gets the maximum bounds.

public Vector3 Max { get; }

Property Value

Vector3

MaxAngularRadius

Angular radius for CCD

public float MaxAngularRadius { get; }

Property Value

float

Min

Gets the minimum bounds.

public Vector3 Min { get; }

Property Value

Vector3

OrthographicAreas

Fraction 0..1 of coverage along YZ,ZX,XY sides of AABB

public Vector3 OrthographicAreas { get; }

Property Value

Vector3

RegionSVM

Gets the region SVM data.

public Hull.Region RegionSVM { get; }

Property Value

Hull.Region

Volume

Gets the volume of the hull.

public float Volume { get; }

Property Value

float

Methods

GetEdges()

Hull half edges order such that each edge e is followed by its twin e' (e1, e1', e2, e2', ...)

public ReadOnlySpan<Hull.HalfEdge> GetEdges()

Returns

ReadOnlySpan<Hull.HalfEdge>

GetFaces()

Hull faces.

public ReadOnlySpan<Hull.Face> GetFaces()

Returns

ReadOnlySpan<Hull.Face>

GetPlanes()

Hull face planes with outward pointing normals (n1, -d1, n2, -d2, ...)

public ReadOnlySpan<Hull.Plane> GetPlanes()

Returns

ReadOnlySpan<Hull.Plane>

GetVertexPositions()

Hull vertex positions.

public ReadOnlySpan<Vector3> GetVertexPositions()

Returns

ReadOnlySpan<Vector3>

GetVertices()

Hull vertex indices. Hulls can have up to 255 vertices.

public Span<byte> GetVertices()

Returns

Span<byte>

Remarks

Empty for resources compiled before 2023-11-04.