Hi everybody!
I noticed that when I use vehicle wrapper to create a simple car game, wheels do not properly detect collision with vertical obstacles (e.g. street curb) - first half of the wheel simply goes through it and only after its bigger part is above the obstacle, the suspension compresses.
It is said that one picture equals thousand words, so I captured two screenshots of what exactly is happening (see the attachment)
Btw. vehicle in this tutorial appears to face the same problem.
My question is: is there any way to fix it? Some workaround with collision bounds, maybe? Iām making simple game where you navigate big truck through difficult terrain and this doesnāt look very nice⦠Iād appreciate any advice. Iām relatively new to Blender, so there is much I have to learn yet.
P.S. English is not my native language so pls excuse any mistakes i may have made.
in this case, you can choose convex hull as a collision bound, and the wheels will āslideā over the object. Itās not reallistic, but itās more credible.
I noticed the same thing. I ended up placing an invisible ramp in front of each curb. Iāll admit it isnāt the most elegant solution but itās the best I could think of.
i wanted to say - use convex hull if they are the same object, it will create an invisible ārampā and the wheels will just slide, if not, do what cthames said. i have the same problem with my scene.
Hi guys, thanks for the replies. Unfortunately, wheels are not the same object (I wouldnāt even know how to do that, Iām using vehicle wrapper and python the way I learnt it from that great tutorial), and adding ramps sounds like āyearsā of work to me (Itās just guess, though, I didnāt try it). You see, I was planning to build slighltly larger, opened level in desert settings, with all the rocks and cliffs and dunes and stuff⦠I worry I would spent most of the time on making these ramps. Isnāt there any other, simpler, solution?
Seeing this is not a mere problem of correct settings, I guess it is a limitation of vehilce wrapper itself, Or am I wrong?
Btw. I would like to know more about GE and how it works. I have experience with various programming languages and techniques, so Iām not scared of Python scripting at all - I just donāt know where to start. If someone could point me to any good study materials, I would really apreciate that. Thanks
Tire radius wonāt make the difference, Iām afraid. It is set correctly for each wheel, that I am sure of.
Anyway, here is the blend. The vehicle model (still under development) is based on ingenious Tatra undercarriage concept (by Hans Ledwinka). One day, I would like to make an offroad truck game out of it. Prepare to be shocked, though - it is an incomplete test version (I use it to try all the stuff I learn about vehicles in GE). I bet modelling is done very ineficiently as well, but give me a break, Iām learning on the go Also, I had to remove all textures because of forumās file size limit.