SimulationIsland Class |
Namespace: DigitalRune.Physics
The SimulationIsland type exposes the following members.
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
Constraints |
Gets the constraints of this island.
| |
ContactConstraints |
Gets the contact constraints of this island.
| |
RigidBodies |
Gets the rigid bodies of this island.
|
In general, it is not needed to deal with simulation islands directly and users can safely ignore this simulation detail.
In each frame the simulation creates different batches of bodies and constraints that can be simulated independently. Such a batch is called simulation island. If rigid bodies can influence each other via constraints (contacts or joints), they are sorted into the same island.
Sleeping: Islands can only sleep as a whole. It is not possible that some bodies in an island are sleeping and others are awake. If one object is awake all objects are awake because the movement of the awake body can propagate to the other bodies. In unfortunate configurations a jittering body can keep a whole island awake.
Static and Kinematic Bodies:Static or Kinematic rigid bodies are not managed in islands. They are not part of another island and they are not in their own island. Islands do only contain Dynamic rigid bodies. (But constraints between dynamic and non-dynamic bodies are managed in the islands.)