CollisionIsland

class CollisionIsland : System.Object

Holds a list of bodies which are in contact with each other.

readonly Jitter.DataStructures.ReadOnlyHashset<RigidBody> Bodies

Gets a read only list of T:Jitter.Dynamics.RigidBody which are in contact with each other.

readonly Jitter.DataStructures.ReadOnlyHashset<Arbiter> Arbiter

Gets a read only list of P:Jitter.Collision.CollisionIsland.Arbiter which are involved in this island.

readonly Jitter.DataStructures.ReadOnlyHashset<Constraint> Constraints

Gets a read only list of T:Jitter.Dynamics.Constraints.Constraint which are involved in this island.

public bool IsActive()

Whether the island is active or not.

Returns:Returns true if the island is active, otherwise false.
public void SetStatus(bool active)

Sets the status of every body in this island to active or inactive.

Parameters:
  • active (bool) –
    If true the island gets activated, if false it
    gets deactivated.
void ClearLists()