class CollisionRules : ConfigData

robot_2Generated
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 NameSummary
VersionGets or sets the version of the collision rules.
DefaultsIf no pair matching is found, this is what we'll use.
PairsDefines what happens when a pair collides.
TagsAll tags with either an entry in Defaults or Pairs.
SerializedPairsGets or sets Pairs in its serialized form for JSON.
GetCollisionRuleDetermines the collision rule between two specified tags.
CleanRemove duplicates etc. Obsolete.