Category: Objects
/ Status
Since engine version: 4.9.6.0 CR
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 iDensity, object pObj);
Parameters
- iDensity:
Minimum material density to cause collisions with this object.
- pObj:
[opt]
Target object. Can be 0 in local calls.
Example
SetContactDensity(25, GetCursor());
Modifies the collision density of the selected clonk of the first player so that the selected clonk can now walk on liquids.
Clonkonaut, Mai 2008