pX_setunit ( var scale );

You can scale the physics world with this value. Often you get better result with small values, but this depends on the size of your 3DGS world. For example, the car in the cardemo is 60 quants height, if you use 0,05 as scale value the Actor of the car is 3 quants height (in the PhysX engine). This small value makes a more realistic physics movement. The best way to do this properly is to create your game world small from the start. Therefore, a good calculation would be 1 quant is 1 meter. The PhysX engine has no unit system.

Parameters:

scale

good value is around 0.5..0.01; default = 0.025


Returns:

1 if successful, 0 otherwise.

Speed:

Medium

Example:

pX_setunit(0.05); // every entity gets scaled in the PhysX engine with this value

See also:

pX_SetSimulationTime