Reference

PPLine

Description

Represents a line objet that can be added to a PPWorld object. It it may be shown as a shape, as a image or it may be hidden. Note that this object, like any other body, needs to be added to a PPWorld in order to have effect.

Exemples

PPLine myLine = new PPLine(0,0,100,100);
world.add(myLine);

Syntax

PPLine(x1,y2,width,height);

Parameters

x1 ->

int : x position of the first point.

y1 ->

int : y position of the first point.

width ->

int : horizontal length of the line

height ->

int : vertical length of the line