pXent_setskinwidth (ENTITY* entity , var width);

Sets the skin penetration width for an entity (Actor) . 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)
width Penetration width (default: 0.025)

Returns:

1 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