Class CollisionProperties
Namespace: ValveResourceFormat.IO
Assembly: ValveResourceFormat.dll
The named collision properties games declare in scripts/collision_properties.txt, which materials and model physics shapes refer to by name.
csharp
public static class CollisionPropertiesInheritance
object ← CollisionProperties
Methods
Find(string)
Finds a collision property by its name, ignoring case.
csharp
public static CollisionProperties.Entry? Find(string name)Parameters
name string
The name.
Returns
The collision property, or null when none has that name.
FindCompiledFrom(KVObject)
Finds the first collision property whose collision group and interaction layers compile to the given collision attributes.
csharp
public static CollisionProperties.Entry? FindCompiledFrom(KVObject collisionAttributes)Parameters
collisionAttributes KVObject
Collision attributes of compiled physics, see PhysAggregateData.CollisionAttributes.
Returns
The collision property, or null when none compiles to them.

