Hey i cant seem to get the physics engine working properly.
I apply physics to an object, and it just goes crazy... flips around the screen and eventually stops.
I read in the manual something about needing a skybox? But i dont have any skybox tga's.

Here is the code:
Code:
	ph_setgravity(vector(0,0,-386));

	tank_base = ent_create("models\\m60_base.mdl", vector(0,0,500), move_tank);
	wait(1);

	tank_turret = ent_create("models\\m60_turret.mdl", tank_base.x, move_turret);
	wait(1);

	phent_settype (tank_base, PH_RIGID, PH_SPHERE); // set the physics entity type
	phent_setmass (tank_base, 300, PH_SPHERE); // and its mass
	phent_setfriction (tank_base, 90); // set the friction
	phent_setdamping (tank_base, 5, 5); // set the damping
	phent_setelasticity (tank_base, 3, 2); // set the elasticity



Last edited by pewpew; 12/03/08 23:06.

HURRR DERP DERP DEERRPP HURR