Reference

adjustAngularVelocity()

Description

Adjust the velocity of the rotation applied to a body by adding the given value to the current AngularVelocity.

Exemples

PPBox myBox = new PPBox(20, 30);
myBox.adjustAngularVelocity(2);
myBox.adjustAngularVelocity(2);
//myBox now has a angular velocity of 4
world.add(myBox);

Syntax

myBody.adjustAngularVelocity(delta);

Parameters

delta ->

float : the velocity to be added (<0 means more counterclockwise rotation; >0 means more clockwise rotation)