Reference

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).