1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE funcs
SYSTEM '../../../clonk.dtd'>
<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?>
<funcs>
<func>
<title>SetContactDensity</title>
<category>Objects</category>
<subcat>Status</subcat>
<version>5.1 OC</version>
<syntax>
<rtype>bool</rtype>
<params>
<param>
<type>int</type>
<name>density</name>
<desc>Minimum material density to cause collisions with this object.</desc>
</param>
</params>
</syntax>
<desc>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.</desc>
<examples>
<example>
<code><funclink>GetCursor</funclink>()->SetContactDensity(25);</code>
<text>Modifies the collision density of the selected clonk of the first player so that the selected clonk can now walk on liquids.</text>
</example>
</examples>
<related><emlink href="material\index.html">Material Definitions</emlink></related>
</func>
<author>Clonkonaut</author><date>2008-05</date>
</funcs>
|