Hello,
At the moment I try to look through the Physic-Engine of 3DGS. If I include eg. gravity power I cant move my model any more.
Does anybody know a tutorial how to use the Engine?

Here my test-script (whats wrong? I cant move on key_i/key_l):
Quote:
function main()
{
level_load ("Physik.wmb");
wait(2);
ph_setgravity (vector (0, 0, -386));//9.81m/s^2
camera.x = - 50;
}

action model()
{
phent_settype (my, PH_RIGID, PH_BOX);
phent_setmass (my, 3, PH_BOX);
while(1)
{
if (key_i) my.x += 6 *time_step;
if (key_l) my.x += -6 *time_step;
wait(1);
}
}



new project in early stage...

Intel Xeon X3450 2,66GHz | Mushkin 8 Gib | Zotac GTS250 + 7300LE | A8.3 com