Class EnvironmentWithDynamics

  • All Implemented Interfaces:
    it.unibo.alchemist.model.Environment , it.unibo.alchemist.model.EnvironmentWithObstacles , it.unibo.alchemist.model.EuclideanEnvironment , it.unibo.alchemist.model.environments.Environment2DWithObstacles , it.unibo.alchemist.model.environments.Euclidean2DEnvironment , it.unibo.alchemist.model.environments.Euclidean2DEnvironmentWithObstacles , it.unibo.alchemist.model.physics.PhysicsEnvironment , it.unibo.alchemist.model.physics.environments.Dynamics2DEnvironment , it.unibo.alchemist.model.physics.environments.EuclideanPhysics2DEnvironmentWithObstacles , it.unibo.alchemist.model.physics.environments.Physics2DEnvironment , java.io.Serializable , kotlin.collections.Iterable , kotlin.collections.MutableIterable

    
    public final class EnvironmentWithDynamics<T extends Object>
     implements Dynamics2DEnvironment<T>, EuclideanPhysics2DEnvironmentWithObstacles<RectObstacle2D<Euclidean2DPosition>, T>
                        

    This Environment uses hooks provided by Dynamics2DEnvironment to update the physical world, It also applies physical properties to any added node to perform collision detection and response. If an image path is provided a backing ImageEnvironmentWithGraph is used, otherwise the Continuous2DEnvironment will be used.