Hello,

I am making a fairground ride (Star Flyer (like a very big Wave Swinger)). Now I am at the gondela's. The center piece is rotating around his Z-axis. But now I have to swing the gondela's wich is depends on the speed of the rotation they need to swing at the X-axis. How do I do this?

I have the following code in my gondela action, but it doesn't work.

Code:
action gondel01 {
	gondel1 = my;
	my.passable = on;
	
	phent_settype(my,PH_RIGID,PH_SPHERE);
	phent_setmass(my,1,PH_SPHERE);
	phent_setdamping(my,0,30);
	phent_setfriction(my,10);
	
	phent_setgroup(my,2);
	
	cmolen = phcon_add(PH_HINGE,my,molen_arm);
	phcon_setparams1(cmolen,my.x,vector(1,0,0),nullvector);
	phcon_setparams2(cmolen,vector(-360,360,0),nullvector,nullvector);
	
	while(my) {
		vec_for_vertex(temp,molen_arm,460);
		
		
		my.x = temp.x;
		my.y = temp.y;
		my.z = temp.z;
	
		my.pan = molen_arm.pan+190;
		
		wait(1);
	}
}


Earth gravity is the following code:

Code:
var earthgravity[3] = 0,0, -386;


And this is the main function:

Code:
function main()
{
	//laad het level
	level_load(level_str);
	//video_set(sys_metrics(0),sys_metrics(1),32,1);
	ph_setgravity(earthgravity);
	ph_selectgroup(2);
}


If you don't know waht a Star Flyer is, just look at the following movie:

http://www.youtube.com/watch?v=oDZYJD460ss

It is about the gondela's wich are swinging out when the ride is going to rotate.

Thanks in advanace for your help.