Hodo33 Posted December 19, 2019 Share Posted December 19, 2019 My vehicles tires don't seem to actually touch the ground.I think the tire uses the bounding box for tire to ground collision. I have made the box smaller than the tire and still sits a little off the surface.I have altered the radius, collision tolerance, contact tolerance and it just wont touch the ground. Anyone point me in the right direction? Quote Link to comment Share on other sites More sharing options...
marauder2k9 Posted December 19, 2019 Share Posted December 19, 2019 If you havent modelled a col-shape for the type then it generates one automatically as far as i know, try modelling a cylinder as a col-mesh slightly smaller than they tyre and it should work Quote Link to comment Share on other sites More sharing options...
Duion Posted December 19, 2019 Share Posted December 19, 2019 Box wheels? Do they work? Quote Link to comment Share on other sites More sharing options...
Hodo33 Posted December 20, 2019 Author Share Posted December 20, 2019 I have made the collision mesh smaller than the tire and that didn't seem to work. Quote Link to comment Share on other sites More sharing options...
Bloodknight Posted December 20, 2019 Share Posted December 20, 2019 youve compared your work vs the cheetah example and checked the differences? Quote Link to comment Share on other sites More sharing options...
Hodo33 Posted December 22, 2019 Author Share Posted December 22, 2019 Loading a Cheetah in game and switching to object view does not show the wheels Looking at the wheel it says collision type as bounds. As for the datablock I use same numbers and I do have a cylinder as collision smaller than the wheel so not sure.. Quote Link to comment Share on other sites More sharing options...
marauder2k9 Posted December 22, 2019 Share Posted December 22, 2019 for the wheels u have to actually look at the wheel.dae shape and the accompanying cs file. I don't think you should have wheels in the same model file as the vehicles body. Do you have the wheels separate? Quote Link to comment Share on other sites More sharing options...
Hodo33 Posted December 22, 2019 Author Share Posted December 22, 2019 Yeah wheels are separate. I can't look at dae files. Quote Link to comment Share on other sites More sharing options...
marauder2k9 Posted December 23, 2019 Share Posted December 23, 2019 you should be able to look at them in the model viewer in torque? Quote Link to comment Share on other sites More sharing options...
Hodo33 Posted December 24, 2019 Author Share Posted December 24, 2019 I did but it only shows bounds as collision type. Not sure if the Maya file used to create it has the collision mesh or not. This is what I was going by wheeledvehicle.cpp// Determinw wheel radius from the shape's bounding box. // The tire should be built with it's hub axis along the // object's Y axis. radius = shape->bounds.len_z() / 2; Quote Link to comment Share on other sites More sharing options...
Duion Posted December 24, 2019 Share Posted December 24, 2019 So you don't have a collision mesh or it is not properly set up. Torque models require a special node setup so the engine can detect everything properly, on simple static models you may be able to do it without it, but with more complex stuff like vehicles this is much more important. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.