Struct Hull ​
Namespace: ValveResourceFormat.ResourceTypes.RubikonPhysics.Shapes
Assembly: ValveResourceFormat.dll
Represents a convex hull shape.
csharp
public readonly struct HullConstructors ​
Hull(KVObject) ​
Initializes a new instance of the struct.
csharp
public Hull(KVObject data)Parameters ​
data KVObject
Properties ​
Centroid ​
Gets the centroid of the hull.
csharp
public Vector3 Centroid { get; }Property Value ​
Data ​
Gets the raw data.
csharp
public KVObject Data { get; }Property Value ​
Max ​
Gets the maximum bounds.
csharp
public Vector3 Max { get; }Property Value ​
MaxAngularRadius ​
Angular radius for CCD
csharp
public float MaxAngularRadius { get; }Property Value ​
Min ​
Gets the minimum bounds.
csharp
public Vector3 Min { get; }Property Value ​
OrthographicAreas ​
Fraction 0..1 of coverage along YZ,ZX,XY sides of AABB
csharp
public Vector3 OrthographicAreas { get; }Property Value ​
RegionSVM ​
Gets the region SVM data.
csharp
public Hull.Region? RegionSVM { get; }Property Value ​
Volume ​
Gets the volume of the hull.
csharp
public float Volume { get; }Property Value ​
Methods ​
GetEdges() ​
Hull half edges order such that each edge e is followed by its twin e' (e1, e1', e2, e2', ...)
csharp
public ReadOnlySpan<Hull.HalfEdge> GetEdges()Returns ​
GetFaces() ​
Hull faces.
csharp
public ReadOnlySpan<Hull.Face> GetFaces()Returns ​
GetPlanes() ​
Hull face planes with outward pointing normals (n1, -d1, n2, -d2, ...)
csharp
public ReadOnlySpan<Hull.Plane> GetPlanes()Returns ​
GetVertexPositions() ​
Hull vertex positions.
csharp
public ReadOnlySpan<Vector3> GetVertexPositions()Returns ​
GetVertices() ​
Hull vertex indices. Hulls can have up to 255 vertices.
csharp
public Span<byte> GetVertices()Returns ​
Remarks ​
Empty for resources compiled before 2023-11-04.

