Struct Shape ​
Namespace: ValveResourceFormat.ResourceTypes.RubikonPhysics
Assembly: ValveResourceFormat.dll
Represents a physics shape.
csharp
public struct ShapeConstructors ​
Shape(KVObject) ​
Initializes a new instance of the struct.
csharp
public Shape(KVObject data)Parameters ​
data KVObject
Properties ​
Capsules ​
Gets or sets the capsule descriptors.
csharp
public CapsuleDescriptor[] Capsules { readonly get; set; }Property Value ​
CollisionAttributeIndices ​
Gets or sets the collision attribute indices.
csharp
public int[] CollisionAttributeIndices { readonly get; set; }Property Value ​
int[]
Compounds ​
Gets or sets the compound descriptors.
csharp
public CompoundDescriptor[] Compounds { readonly get; set; }Property Value ​
Hulls ​
Gets or sets the hull descriptors.
csharp
public HullDescriptor[] Hulls { readonly get; set; }Property Value ​
Meshes ​
Gets or sets the mesh descriptors.
csharp
public MeshDescriptor[] Meshes { readonly get; set; }Property Value ​
Spheres ​
Gets or sets the sphere descriptors.
csharp
public SphereDescriptor[] Spheres { readonly get; set; }Property Value ​
Methods ​
GetAllCapsules() ​
Enumerates every capsule, root ones and compound children.
csharp
public readonly IEnumerable<CapsuleDescriptor> GetAllCapsules()Returns ​
IEnumerable<CapsuleDescriptor>
GetAllHulls() ​
Enumerates every hull, root ones and compound children.
csharp
public readonly IEnumerable<HullDescriptor> GetAllHulls()Returns ​
GetAllMeshes() ​
Enumerates every mesh, root ones and compound children.
csharp
public readonly IEnumerable<MeshDescriptor> GetAllMeshes()Returns ​
GetAllSpheres() ​
Enumerates every sphere, root ones and compound children.
csharp
public readonly IEnumerable<SphereDescriptor> GetAllSpheres()Returns ​
See Also ​
https://s2v.app/SchemaExplorer/cs2/modellib/VPhysics2ShapeDef_t

