Author Topic: More than 1 type of wheel on a vehicle?  (Read 1079 times)

I was wondering if anyone knew how to have different wheels on the same vehicle e.g. normal wheels and then some invisible wheels to help it balance?

I'll show you why I need it:
Vehicle_Mega-Segway.zip

Probably.

Code: [Select]
function scooterVehicle::onAdd(%this,%obj)
{
%obj.setWheelTire(0, scootertire);
%obj.setWheelTire(1, scootertire);

%obj.setWheelSpring(0, scooterSpring);
%obj.setWheelSpring(1, scooterSpring);

%obj.setWheelSteering(0,1);

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

Presumably you could set the wheel types in each slot to different ones.


Probably.

Code: [Select]
function scooterVehicle::onAdd(%this,%obj)
{
%obj.setWheelTire(0, scootertire);
%obj.setWheelTire(1, scootertire);

%obj.setWheelSpring(0, scooterSpring);
%obj.setWheelSpring(1, scooterSpring);

%obj.setWheelSteering(0,1);

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

Presumably you could set the wheel types in each slot to different ones.

space guy, all you do is help people. you are such a beast. you deserve a medal or something.

Yeah, and Space Guy, the code you gave me helped me discover more than just setting different wheels, I now know how to set/change springs, choose which wheels steer, and which wheels drive the vehicle. You do deserve a freakin' medal!