Reference

setDamping()

Description

Damping is the effect of "air" on a body. The more damping you have, the more energy lost you will get, resulting in an impression resistance to the gravity effect. Use this function to adjust the damping of all bodies, wich will make it fall faster or slower.

Exemples

PPWorld world = new PPWorld();
world.setDamping(5);

Syntax

world.setDamping(damping);

Parameters

damping ->

float : The intensity of damping (higher mean more energy retains).