var earthGravity[3] = 0,0,-368;
...
action gondel01 {
gondel001 = my;
my.passable = on;
my.scale_x = 0.5;
my.scale_y = 0.5;
my.scale_z = 0.5;
//Physics on
phent_settype(my,PH_RIGID,PH_BOX);
//Set a weight
phent_setmass(my,50,PH_BOX);
//Set a friction
phent_setfriction(my,100);
//Set a damping
phent_setdamping(my,10,10);
//Set a gravity
ph_setgravity(earthGravity);
gondel1 = phcon_add(PH_HINGE,my,kruis01);
phcon_setparams1(gondel1,my.x,vector(0,0,1),nullvector);
phcon_setparams2(gondel1,vector(-360,360,0),nullvector,nullvector);
while(my) {
vec_for_vertex(temp,kruis01,875);
phent_addvelcentral(my,vector(temp.pan*time_step,temp.tilt*time_step,temp.roll*time_step));
my.x = temp.x;
my.y = temp.y;
my.z = temp.z;
wait(1);
}
}