class CollisionRules : ConfigData

book_4_sparkGenerated
code_blocksInput

Description

The CollisionRules class in the Sandbox.Physics namespace provides a JSON serializable description of the physics collision rules. It is primarily used internally to communicate with the engine and store data in a networked string table. This class is not typically manipulated directly by users.

Members

Instance Members

Member Name Summary
Version Gets or sets the version of the collision rules.
Defaults If no pair matching is found, this dictionary provides the default collision rules.
Pairs Defines the collision behavior for specific pairs of objects.
Tags Lists all tags with entries in either Defaults or Pairs.
SerializedPairs Gets or sets the serialized form of Pairs for JSON.
GetCollisionRule Determines the collision rule between two specified tags.
Clean Removes duplicates and cleans up the collision rules. Obsolete.