Reference
- Body Classes
-
Body Functions
- (PPBox)getHeight()
- (PPBox)getWidth()
- (PPBox)setSize()
- (PPCircle)getSize()
- (PPCircle)setSize()
- addExcludedBody()
- addForce()
- adjustAngularVelocity()
- adjustVelocity()
- applyMatrix()
- attachImage()
- dettachImage()
- getAngularVelocity()
- getImageAlpha()
- getRotation()
- getVelocityX()
- getVelocityY()
- getX()
- getY()
- isResting()
- isStatic()
- isTouchingBody()
- resetForces()
- setAngularVelocity()
- setDamping()
- setDrawable()
- setFillColor()
- setFriction()
- setGravityEffected()
- setImageAlpha()
- setMass()
- setPosition()
- setRestitution()
- setRotatable()
- setRotation()
- setRotDamping()
- setStaticBody()
- setStrokeColor()
- setStrokeWidth()
- setVelocity()
- World Classes
- World Fucntions
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