Hi,
I have an A7 physics code for lite-c. Can anyone change this to A8. Especialy the motor won't work.
/*entiteit definieren*/
ENTITY* molen;
action molen_move()
{
molen= my;
var MolenID;
var anchor[3];
set(my,PASSABLE); //in c-script my.PASSABLE = on;
phent_settype(my,PH_RIGID,PH_SPHERE);
phent_setmass(my,600,PH_SPHERE);
phent_setgroup(my,2);
vec_set(anchor,vector(0,0,1));//draairichting bepalen volgens x,y,z as nu dus op de z
vec_rotate(anchor,vector(0,0,0));/*hier kan je pan en tilt en roll veranderen en dan verandert ie de pivot points*/
MolenID = phcon_add(PH_HINGE,my,NULL);//hier koppel je de delen aan elkaar met een scharnier
phcon_setparams1(MolenID,my.x,anchor,nullvector);
phcon_setparams2(MolenID,vector(-360,360,0),nullvector,nullvector);
phent_setdamping(my,100,100);
while(1)
{
phcon_setmotor(MolenID,vector(rotate_speed*-1,900000,0),nullvector,nullvector);
wait(1);
}
}