• The Physics Class

    public void createWorld(double winWidth,double winHeight,float lowerBoundX, float lowerBoundY,
    float upperBoundX, float upperBoundY, float wind , float gravity)
    // creates the world of Physics, the parameters lowerBoundX,lowerBoundY,upperBoundX,upperBoundY refer to the
    // dimension of the screen in which the physics will have influence.
    public void createWorld(double winWidth, double winHeight)
    // creates the world of Physics.
    public void createBodyFromSprite(Sprite spr, boolean isStatic)
    // creates a body for the sprite.
    public void update()
    // updates all that is within the limits of the physic screen.
    public void setGravity(float g)
    // assigns a value to gravity
    public float getGravity()
    // returns the gravity
    public void setWind(float w)
    // assigns a value to the wind
    public float getWind()
    // returns the wind.
    public void setWidhtWindow(double width)
    // assigns a value to the width of the window
    public void setHeightWindow(double height)
    // assigns a value to the height of the window
    public void setTimeStep(float ts)
    // assigns value to the frame rate
    

    UFF - Universidade Federal Fluminense - Institudo de Computação - Ciência da Computação