How do i make an invisable wheel
by Nick Eaket · in Torque Game Engine · 04/11/2004 (9:40 am) · 17 replies
I am making a hover vehicle and i don't know how to make an invisable wheel. I just got torque and i don't know what to do. Is it in the c++ code or do i make it invisable when i export it from milkshape. This question may of been asked before but i couldn't find any.
Does anyone know how to make an invisable wheel?
Thanks,
Dust
Does anyone know how to make an invisable wheel?
Thanks,
Dust
#2
Is that what u ment to do or did u mean to do something else.
That way didn't work.
04/11/2004 (10:22 am)
I tried to do that but i would need 2 meshes to export. one visable one and one colision and i don't want a visable one.Is that what u ment to do or did u mean to do something else.
That way didn't work.
#3
04/11/2004 (10:47 am)
If you don't find any other solution you can always export it with a alpha texture that is completely transparant. But I'm sure there's a cleaner way.
#4
But if there is a better way tell me somebody!!!!
04/11/2004 (2:18 pm)
Thanks Ward it not too good but i guess it will have to do.But if there is a better way tell me somebody!!!!
#5
In that file look for the function "WheeledVehicle::renderImage", at the end of that function comment out these two lines:
That made the wheels on the default buggy invisible. The cool thing is the supension still works, so if you wanted to make little "hover pads" or something and attach them to the axles, you could have a pretty cool looking hover vehicle.
04/11/2004 (5:10 pm)
Can't help you much with hover vehicles, but I did make the wheels on a wheeled vehicle invisible by accident. Commenting out two lines of code in the "WheeledVehicle.cc" file will do it.In that file look for the function "WheeledVehicle::renderImage", at the end of that function comment out these two lines:
wheel->shapeInstance->animate(); wheel->shapeInstance->render();
That made the wheels on the default buggy invisible. The cool thing is the supension still works, so if you wanted to make little "hover pads" or something and attach them to the axles, you could have a pretty cool looking hover vehicle.
#6
Now looking for that .cc made me even find the hovervehicle.cc. I never seen that before. I hope I can use this now lol.
Thanks David
04/12/2004 (8:19 am)
Wow thx that was what i was looking for.Now looking for that .cc made me even find the hovervehicle.cc. I never seen that before. I hope I can use this now lol.
Thanks David
#7
(same goes with flying vehicle class)
04/12/2004 (8:28 am)
Avoid the hover vehicle class, its got some serious problems with it. If you go quite fast you can pass through the terrain!(same goes with flying vehicle class)
#8
04/12/2004 (8:34 am)
Yeah, its really buggy. But I hear there are some people working on it, hopefully they get it fixed :)
#9
ie it's going to make all Wheeled Vehicles have invisible wheels ?
04/12/2004 (8:39 am)
Erh, isn't David Wilson's solution a bit overkill ?ie it's going to make all Wheeled Vehicles have invisible wheels ?
#10
But now i got to find another solution. Anyone know another way?
04/12/2004 (2:50 pm)
Wow i never knew that would make all vehicles have invisable wheels and that the hovervehicle had bugs. Thanks for telling me all that.But now i got to find another solution. Anyone know another way?
#11
make these objects, there probaly all dummy objects
and
Make the the same siza and at the same location
You probaly dont need all the detail objects
bounds
box01
col-1
collision-1
detail1
detail25
detail50
detail100
start01
and in the schematic thing
bounds is by itself
everything is connected to box01
but col-1 is connected to start01
04/12/2004 (3:30 pm)
Im not a moddler so bear with memake these objects, there probaly all dummy objects
and
Make the the same siza and at the same location
You probaly dont need all the detail objects
bounds
box01
col-1
collision-1
detail1
detail25
detail50
detail100
start01
and in the schematic thing
bounds is by itself
everything is connected to box01
but col-1 is connected to start01
#12
04/12/2004 (4:30 pm)
Could you just make the visible mesh very very small and leave the collision mesh the size you need? Then you could hide the visual part in your vehicle mesh and only the wheel's collision mesh would stick out.
#13
04/12/2004 (4:40 pm)
It may be overkill, but coudn't he then copy the WheeledVehicle class to another name and use that for his hover vehicles?
#14
Now I got a vehicle that looks like it is hovering!!!!
Thanks,
Dust
04/13/2004 (12:28 pm)
I like your idea robert I tried it and it worked. That was the answer that I needed. Now I got a vehicle that looks like it is hovering!!!!
Thanks,
Dust
#17
EDIT: Forget what I said, I read "wall" instead of "wheel" in the topic. :)
04/19/2004 (9:28 am)
What about the vehicleBlocker class in the engine?EDIT: Forget what I said, I read "wall" instead of "wheel" in the topic. :)
Associate Craig Fortune