SetContactDensity

Category: Objects / Status
Since engine version: 1.0 OC

Description

Determines the minimum density of a material to cause an object to collide with the material. By default, objects collide with material that have a density of 50 (solid) or more.

Syntax

bool SetContactDensity(int density);

Parameter

density:
Minimum material density to cause collisions with this object.

Example

GetCursor()->SetContactDensity(25);
Modifies the collision density of the selected clonk of the first player so that the selected clonk can now walk on liquids.
See also: Material Definitions
Clonkonaut, 2008-05