pXent_setskinwidth (ENTITY* entity, var width)

Sets the skin penetration width for an individual physics entity (actor) or for all all subsequently created character controllers. It is like decreasing the collision volume. The simulation deals with inaccuracy when stacking objects by letting them slightly inter penetrate each other. The amount of permitted penetration can be regulated with this function.

Parameters:

entity Registered entity pointer (Actor), A8.41 or NULL for setting the skin width only for character controllers (see below).
width Penetration width (default: 0.1)

Returns:

Nonzero if successful, 0 otherwise.

Remarks:

Speed:

Fast

Example:

ENTITY* myCrate;
// ...
// on startup
myCrate = ent_create( "crate.mdl", nullvector, any_function );
pXent_settype( myCrate, PH_RIGID, PH_BOX ); 

pXent_setskinwidth(myCrate, 0.5);

See also:

pX_setgravity, pX_setunit