src/physics.js
/*
 * Change the properties of a body to make it behave like a corpse.
 */
Change the properties of a body to make it behave like a corpse.
Change the properties of a body to make it behave like a corpse .
function corpsify(body) {
	body.gravityScale = 1;
	body.mass *= 0.5;
	body.fixedRotation = false;
	body.updateMassProperties();
	_.forEach(body.shapes, function(s) {
		s.material = Material.Bouncy;
	});
}
function corpsify ( body ) { body . gravityScale = 1 ; body . mass *= 0.5 ; body . fixedRotation = false ; body . updateMassProperties ( ) ; _ . forEach ( body . shapes , function ( s ) { s . material = Material . Bouncy ; } ) ; }
Change the properties of a body to make it behave like a corpse.
Change the properties of a body to make it behave like a corpse .