Could I disable the spring of the vehicle?
by Winsoft · in Torque Game Engine · 08/09/2006 (9:58 pm) · 1 replies
Could I disable the spring of the vehicle?I mean the tires of vehicle will not go up and down even in the bumpiness.
I have tried this way,like the following.
function WheeledVehicleData::onAdd(%this,%obj)
{
for (%i = %obj.getWheelCount() - 1; %i >= 0; %i--) {
%obj.setWheelTire(%i,DefaultCarTire);
// %obj.setWheelSpring(%i,DefaultCarSpring);
%obj.setWheelPowered(%i,false);
}
}
just disable the line of setting spring.But It does not work,how can I do?
I have tried this way,like the following.
function WheeledVehicleData::onAdd(%this,%obj)
{
for (%i = %obj.getWheelCount() - 1; %i >= 0; %i--) {
%obj.setWheelTire(%i,DefaultCarTire);
// %obj.setWheelSpring(%i,DefaultCarSpring);
%obj.setWheelPowered(%i,false);
}
}
just disable the line of setting spring.But It does not work,how can I do?
Associate Anthony Rosenbaum