Ok now ive decided to use c_move, but the prob is that my model only move one step (1000*time_step) when I add the "settype" and then it stops in spite of the while-loop. Whats wrong?
#include <acknex.h>
#include <default.c>
////////////////////////////
var speed1;
function main()
{
level_load ("Physik.wmb");
wait(2);
ph_setgravity (vector (0, 0, -386));
camera.x = 50;
}
action model()
{
phent_settype (my, PH_RIGID, PH_BOX);
while(1)
{
if (key_i) speed1 = 10 * time_step;
c_move (my, nullvector, vector(0, speed1, 0), NULL);
wait(1);
}
}