class CollisionRules
in global :: Sandbox . Physics
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.
public Dictionary<string,CollisionRules.Result> Defaults { get; set; }
If no pair matching is found, this is what we'll use
public Dictionary<CollisionRules.Pair,CollisionRules.Result> Pairs { get; set; }
What happens when a pair collides
public IEnumerable<string> Tags { get; }
All tags with either an entry in or .
public JsonNode SerializedPairs { get; }
Gets or sets in its serialized form for JSON.
public CollisionRules.Result GetCollisionRule( string left, string right )
Gets the specific collision rule for a pair of tags.
public int Version { get; }
😔 No documentation found.
public void Clean( )
😔 No documentation found.
public int GetHashCode( )
😔 No documentation found.
public Guid Guid { get; set; }
😔 No documentation found.
public JsonObject Serialize( )
😔 No documentation found.
public void Deserialize( string json )
😔 No documentation found.
public Type GetType( )
😔 No documentation found.
public string ToString( )
😔 No documentation found.
public bool Equals( object obj )
😔 No documentation found.
public CollisionRules( )
😔 No documentation found.