phent_setmass ( ENTITY* entity, var mass, var hulltype );

Sets the entity's physical mass. A definition of mass is "resistance to change in velocity". Thus by increasing an object's mass you will have to use a stronger force (or torque) to make them move, or to stop them from moving.


entity Entity to be affected
mass Mass of the object in kilograms, or 0 for a fixed object
hulltype Shape of this object defining its rotational behavior: PH_SPHERE, PH_BOX, PH_CYLINDER, or PH_POLY.


1 if successful, 0 otherwise.



Slow (first time object is set) / Medium


phent_setmass(my, 0, PH_SPHERE);

See also:

phent_addforcelocal, phent_settype ► latest version online