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
setEdgesRestitution()
Description
Set the restitution of the edges, which define itself by the "spring" effect occuring when two bodies. A value of 1 would be a pool ball. The default is 0, which mean no restitution.
Exemples
PPWorld world = new PPWorld();
world. setEdgesRestitution(3);
Syntax
world.setEdgesRestitution(restitution);
Parameters
restitution ->
float : the restitution value of the edges, which should be between 0 (no restitution) and 1 (pool ball).