Game Development Community

Vehicles with Blender 2.67

by Stephen · in Artist Corner · 07/26/2013 (8:10 pm) · 4 replies

I'm trying to create a collision mesh for my model and it's not working correctly in Torque 3D. I'm exporting the model as dae format default from Blender.

I haven't found any good documents on how to export vehicle models for Torque 3D.

imageshack.us/a/img90/3701/obg.th.png

#1
07/26/2013 (9:10 pm)
So I was looking of the Cheetah vehicle and I matched my vehicle to it the best I could and the collision worked. I found out that you can't make one full collision mesh. You can have split them up. So I did and it works. Well as far as I can tell. I'll make tweaks as I go.

imageshack.us/a/img194/5707/es4j.th.png

Now the next part is to get the wheels attached.
#2
07/27/2013 (7:07 am)
Now I have thought that I set up the rig right for the wheels but when I spawn the vehicle in game the wheels are not spawned on it and the vehicle falls through the terrain. I check the console.log and I get these messages.

setWheelSpring: invalid spring datablock or wheel index, vehicle has 4 hubs
setWheelSpring: invalid spring datablock or wheel index, vehicle has 4 hubs
setWheelSpring: invalid spring datablock or wheel index, vehicle has 4 hubs
setWheelSpring: invalid spring datablock or wheel index, vehicle has 4 hubs

Here's what the vehicle looks like in the Shape Editor.

imageshack.us/a/img854/7792/a2a4.th.png

I'm not sure how to fix this. I copied and pasted most of the datablock from the Cheetah vehicle datablock and change the shapeFiles. Anyone have any ideas?
#3
07/27/2013 (7:34 am)
So I think I have managed to get the wheels to spawn on the vehicle now. When I spawn the vehicle on the terrain the vehicle sinks through the terrain like quick sand until it's all the way through and just falls. Why is the vehicle sinking through the ground?

EDIT:
I figured what was causing my vehicle to fall through the terrain. I had the mass to large for the springs. I found this out but this thread.

www.garagegames.com/community/forums/viewthread/39832/1#comment-314913
#4
07/28/2013 (8:42 pm)
Glad you figured that out! To confirm what you discovered, vehicle wheels are spawned in scripts, not added in the art files, which means they won't show up in the shape editor.