Hallo everybody.

I have a big problem. When I test my model, the physics-model wich is attached seems to be twice. Here is a screenshot to see what I mean.


As you can see the model where I am talking about is not good. You see 2 of the same models inside each other but in a different direction. How can I set it to 1 model with the right code?

I am using C-Script Physics. And this is the code so far I got it:

 Code:
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);
	}
}

I hope you can help me, I am struggling with this code for months.