Struct Compound ​
Namespace: ValveResourceFormat.ResourceTypes.RubikonPhysics.Shapes
Assembly: ValveResourceFormat.dll
Represents a compound shape: a mix of hulls, meshes, capsules and spheres under one bounding volume tree.
public readonly struct CompoundConstructors ​
Compound(KVObject) ​
Initializes a new instance of the struct.
public Compound(KVObject data)Parameters ​
data KVObject
Properties ​
Capsules ​
Gets the capsules.
public Capsule[] Capsules { get; }Property Value ​
Capsule[]
Data ​
Gets the serialized keyvalues.
public KVObject Data { get; }Property Value ​
KVObject
HullBaseIndex ​
Gets the first hull's child shape id. Ids run over spheres, then capsules, hulls and meshes.
public int HullBaseIndex { get; }Property Value ​
Hulls ​
Gets the hulls.
public Hull[] Hulls { get; }Property Value ​
Hull[]
MaterialIndices ​
Gets the material index of each child shape, indexed by child shape id.
public byte[] MaterialIndices { get; }Property Value ​
byte[]
Max ​
Gets the maximum bounds.
public Vector3 Max { get; }Property Value ​
MeshBaseIndex ​
Gets the first mesh's child shape id.
public int MeshBaseIndex { get; }Property Value ​
Meshes ​
Gets the meshes.
public Mesh[] Meshes { get; }Property Value ​
Mesh[]
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 ​
ShapeCount ​
Gets the total number of child shapes.
public int ShapeCount { get; }Property Value ​
Spheres ​
Gets the spheres.
public Sphere[] Spheres { get; }Property Value ​
Sphere[]
StartIterationIndex ​
Gets the tree's start iteration index.
public uint StartIterationIndex { get; }Property Value ​
SurfaceArea ​
Gets the surface area.
public float SurfaceArea { get; }Property Value ​
Volume ​
Gets the volume.
public float Volume { get; }Property Value ​
Methods ​
GetTreeNodes() ​
The nodes of the bounding volume tree over the child shapes.
public Compound.TreeNode[] GetTreeNodes()
