b2d_body_set_restitution(id,restitution)

From ENIGMA
Jump to navigation Jump to search

Description

Sets the restitution of the given physics body.

Parameters

Parameter Data Type Description
id integer index of the body
restitution double the restitution to give the body

Return Values

void: This function does not return anything.

Example Call

// demonstrates setting the restitution of a physics body
b2d_body_set_restitution(mybody, );