ArbiterKey

struct ArbiterKey : System.ValueType

For easy access, Arbiters are stored in a Hashtable(ArbiterMap). To find the Arbiter fortwo RigidBodies, build an ArbiterKey for the two bodies and use it as the lookup key for the ArbiterMap.

void SetBodies(RigidBody body1, RigidBody body2)

Don’t call this, while the key is used in the arbitermap. It changes the hashcode of this object.

Parameters:
  • body1 (Jitter.Dynamics.RigidBody) – The first body.
  • body2 (Jitter.Dynamics.RigidBody) – The second body.
bool Equals(System.Object obj)

Checks if two objects are equal.

Parameters:
  • obj (System.Object) – The object to check against.
Returns:

Returns true if they are equal, otherwise false.

int GetHashCode()

Returns the hashcode of the ArbiterKey. The hashcode is the same if an ArbiterKey contains the same bodies.

Returns: