Struct Compound.TreeNode ​
Namespace: ValveResourceFormat.ResourceTypes.RubikonPhysics.Shapes
Assembly: ValveResourceFormat.dll
Represents a node in the compound tree. Nodes are stored in pre-order: an internal node's first child is the next node and its second child follows the first child's subtree.
csharp
public readonly struct Compound.TreeNodeConstructors ​
TreeNode(KVObject) ​
Initializes a new instance of the struct.
csharp
public TreeNode(KVObject data)Parameters ​
data KVObject
Properties ​
Max ​
The maximum bounds.
csharp
public Vector3 Max { get; }Property Value ​
Min ​
The minimum bounds.
csharp
public Vector3 Min { get; }Property Value ​
SubtreeEndOrCompoundId ​
For an internal node the number of nodes in its subtree including itself, for a leaf the child shape id.
csharp
public uint SubtreeEndOrCompoundId { get; }Property Value ​
Type ​
The split axis of an internal node, or .
csharp
public Mesh.NodeType Type { get; }Property Value ​
See Also ​
https://s2v.app/SchemaExplorer/cs2/physicslib/RnCompoundTreeNode_t

