Module org.dyn4j

Class Island<T extends PhysicsBody>

  • Type Parameters:
    T - the PhysicsBody type

    public final class Island<T extends PhysicsBody>
    extends Object
    Used to solve the contact constraints and joints for a group of interconnected bodies.

    Islands are used and setup by the ConstraintGraph during it's solving process.

    Since:
    1.0.0
    Version:
    4.0.0
    Author:
    William Bittle
    • Constructor Detail

      • Island

        public Island()
        Default constructor.
        Since:
        3.2.0
      • Island

        public Island​(int initialBodyCount,
                      int initialJointCount)
        Full constructor.
        Parameters:
        initialBodyCount - the initial body capacity
        initialJointCount - the initial joint capacity
        Since:
        4.0.0