Struct Hull
- 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
Data
Gets the raw data.
public KVObject Data { get; }
Property Value
Max
Gets the maximum bounds.
public Vector3 Max { get; }
Property Value
MaxAngularRadius
Angular radius for CCD
public float MaxAngularRadius { get; }
Property Value
Min
Gets the minimum bounds.
public Vector3 Min { get; }
Property Value
OrthographicAreas
Fraction 0..1 of coverage along YZ,ZX,XY sides of AABB
public Vector3 OrthographicAreas { get; }
Property Value
RegionSVM
Gets the region SVM data.
public Hull.Region RegionSVM { get; }
Property Value
Volume
Gets the volume of the hull.
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', ...)
public ReadOnlySpan<Hull.HalfEdge> GetEdges()
Returns
GetFaces()
Hull faces.
public ReadOnlySpan<Hull.Face> GetFaces()
Returns
GetPlanes()
Hull face planes with outward pointing normals (n1, -d1, n2, -d2, ...)
public ReadOnlySpan<Hull.Plane> GetPlanes()
Returns
GetVertexPositions()
Hull vertex positions.
public ReadOnlySpan<Vector3> GetVertexPositions()
Returns
GetVertices()
Hull vertex indices. Hulls can have up to 255 vertices.
public Span<byte> GetVertices()
Returns
Remarks
Empty for resources compiled before 2023-11-04.