Vehicle keeps dragging [SOLVED]

Post Reply
ComradeKeys
Posts: 5
Joined: Thu Jul 28, 2016 1:23 am

Vehicle keeps dragging [SOLVED]

Post by ComradeKeys »

Hey you guys I am trying to figure out how my vehicle physics to work. So basically I got the vehicle to work just fine except it really drags whenever you try to turn the thing here is a webm of what it looks like:
http://webmshare.com/Aa1wP
Here is what it looks like
https://gitlab.com/CollectiveTyranny/DM ... ehicle.cpp
This is the source file for the Vehicle
Most rigid body creation is handled inside of the Entity class which things derive from
https://gitlab.com/CollectiveTyranny/DM ... Entity.cpp
I have tried changing around the mass and the wheel attributes but to no real avail, I also applied friction to the ground so I know the wheels are rubbing against the grould well. Does anyone have a clue why the vehicle refuses to turn normally?
Last edited by ComradeKeys on Fri Jul 29, 2016 6:25 pm, edited 1 time in total.
ComradeKeys
Posts: 5
Joined: Thu Jul 28, 2016 1:23 am

Re: Vehicle keeps dragging

Post by ComradeKeys »

I have managed to deduce with my code that it is not the vehicle itself that is having any issues, and the steering is just fine for it. Due to this screenshot
https://share.riseup.net/#sHE2LbeIzk928O3PqtvVmQ
I have been able to deduce that the issue is with the rigid body not turning at all and that is causing the issue.
ComradeKeys
Posts: 5
Joined: Thu Jul 28, 2016 1:23 am

Re: Vehicle keeps dragging

Post by ComradeKeys »

I solved the issue, figures I was using a btvhTriangleMeshShape which makes the rigidbody not rotate so I switched it over to a btGImpactMeshShape and everything is happy now :)
Post Reply