PPhys2D Home
A Phys2D adaptation for Processing.
  • information
  • reference
  • examples

Reference

  • Body Classes
    • PPBox
    • PPCircle
    • PPConvexPoly
    • PPLine
    • PPPoly
  • 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
    • PPWorld
  • World Fucntions
    • add()
    • clear()
    • draw()
    • remove()
    • setDamping()
    • setEdges()
    • setEdgesFriction()
    • setEdgesRestitution()
    • setGravity()
    • step()

PPCircle

Description

Represents a circle 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

PPCircle myCricle1 = new PPCircle(50);
world.add(myCricle1);

Syntax

PPCircle(diameter);

Parameters

diameter ->

float: the diameter of the circle.

Jean-Maxime Couillard - jm.couillard@globetrotter.net - Website bulit using CodeIgnitier PHP Engine with valid XHTML 1.0 Strict