Author Topic: I really need assistance with my vehicle.  (Read 898 times)

I still have not been able to get my gyrocycle working. I need to mount 3 wheels in total: two invisi-wheels on the sides, and one visible wheel in the center of the vehicle.

The way it is now, the two side wheels mount perfectly. But the 3rd wheel mounts to the same joint as one of the invisi-wheels. (Changed to jeep tires so you can see whats going on)

With this script in place:
Code: [Select]
function GyrocycleVehicle::onadd(%this,%obj)
{
parent::onadd(%this,%obj);

%obj.setWheelTire(0, Jeeptire);
%obj.setWheelTire(1, jeeptire);
%obj.setWheelTire(2, Gyrocycletire);

%obj.setWheelSpring(0, jeepspring);
%obj.setWheelSpring(1, jeepspring);
%obj.setWheelSpring(2, gyrocyclespring);

%obj.setWheelSteering(0,0);
%obj.setWheelSteering(1,0);
%obj.setWheelSteering(2,-1);

%obj.setWheelPowered(0,true);
    %obj.setWheelPowered(1,true);
%obj.setWheelPowered(2,true);
   
}

This is what happens in game:



With the two side mounts being named hub0 and hub1 and a mount up at the top of the vehicle named hub2.
Help would be much appreciated, as Ive been trying to get this correct for quite a while now. :/

18 views. No replies. How comforting.

31 Views and no replies. If I quadruple post on this Im gonna cry.

Is the wheel centered in blender/milkshape?

Is the wheel centered in blender/milkshape?
Yes. The wheel mounts perfectly fine WITHOUT that script, which is bizzare as forget. If I set the name of the mount (the center one) to hub0 and set numWheels to 1, my wheel mounts correctly. For some reason this script is not doing what it's supposed to.

The views have reached 78. I am sad.

You spawn it, then it roles backwords......

So, no clue about scritping but... add a wheel to the other side (probably hes trying but it wont work and now im called an idiot or something but w/e :P)

Views have loving reached 89. Thats it. Im just looking at Phy's motorcycles, HE seems to have done something right.

EDIT: Scratch that. Phy's motorcycles have 4 invisi wheels instead of 2 visible and 2 invisi. I still need help.

Oh, and veiws are 109 now. :/
« Last Edit: December 15, 2010, 05:48:45 PM by takato14 »




Try switching the hubs around, to try isolate the problem. If it makes no difference, then the problem is with the script. If it does change something, then the problem is with the wheels or the hubs.

Try switching the hubs around, to try isolate the problem. If it makes no difference, then the problem is with the script. If it does change something, then the problem is with the wheels or the hubs.
I have already isolated the problem. Switching the hubs doesnt work. It is the script.

It works on other vehicles, but not mine. Only difference is that my vehicle has 3 wheels instead of 4, and that just means one less set of args.

EDIT: Scratch that. The biplane only has three. I practically copy-pasted the function from the biplane. Still doesnt work.
« Last Edit: December 20, 2010, 12:15:37 PM by takato14 »

Well well. Oddly enough, apparently the wheel mounts were too close to one another. I moved the invisi-wheel mounts forward a little (because I realized they were too close for it to balance) and it mounted right in game. *shrugs*