Game Development Community

Vehicle Nodes

by DMT · in Artist Corner · 07/23/2010 (8:50 pm) · 4 replies

Hello,

I am trying to make a very simple wheeled vehicle. At this point I have a model with 4 wheel nodes named wheel0 - wheel3, and I have had little success in mounting wheels to the said nodes.

When I try to do : vehicle.setWheelTire(0, DefaultCarTire);

I get : setWheelTire: wheel index out of bounds, vehicle has 14878341 hubs

So my question is this : what nodes do I need, at a minimum, to be able to create a wheeled vehicle capable of motion?

Thanks.

#1
07/24/2010 (3:07 am)
The nodes where the wheels are mounted must be called 'hubN' (where N is 0-3) for a 4 wheeled vehicle.
#2
07/24/2010 (6:15 pm)
You might also find this document useful: http://fosters.realmwarsgame.com/tools/DTS_Nodes.pdf
#3
07/25/2010 (12:57 am)
I think you also need to check collapse all transforms when exporting
#4
07/25/2010 (6:07 am)
Excellent!

Thanks guys, this is exactly what I was looking for. And that DTS Node guide is perfect!