Summary

This is a JSON serializable description of the physics's collision rules. This allows us to send it to the engine - and store it in a string table (which is networked to the client). You shouldn't really ever have to mess with this, it's just used internally.

Constructors

CollisionRules

Properties

Defaults If no pair matching is found, this is what we'll use
Pairs What happens when a pair collides
SerializedPairs Gets or sets Sandbox.Physics.CollisionRules.Pairs in its serialized form for JSON.
Tags All tags with either an entry in Sandbox.Physics.CollisionRules.Defaults or Sandbox.Physics.CollisionRules.Pairs.
Version

Methods

Cleanobsolete Remove duplicates etc
GetCollisionRule Gets the specific collision rule for a pair of tags.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.