- public void createWorld(double winWidth,double winHeight,float lowerBoundX, float lowerBoundY,
- float upperBoundX, float upperBoundY, float wind , float gravity)
-
-
- public void createWorld(double winWidth, double winHeight)
-
- public void createBodyFromSprite(Sprite spr, boolean isStatic)
-
- public void update()
-
- public void setGravity(float g)
-
- public float getGravity()
-
- public void setWind(float w)
-
- public float getWind()
-
- public void setWidhtWindow(double width)
-
- public void setHeightWindow(double height)
-
- public void setTimeStep(float ts)
-
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