Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


#Actualshazen

Posted 20 June 2013 - 07:20 AM

you need to know if the wheel transforms are relative to the chassis transform or if they are relative to the world origin in 3ds. You then will need to treat them the same in your code.
 
You have it implemented as if they are relative to the world origin. You can switch it to relative to the chassis to see if it works like this:
 

connectionPointCS0 =(btVector3(matWorld._41, matWorld._42, matWorld._43)) + 
(btVector3(chassisWorld._41, chassisWorld._42, chassisWorld._43));

if that makes the wheels display in the correct place, then essentially you've imported the model with a bone hierarchy that will need to be updated every frame or at least every time the car changes position or rotation.


#1shazen

Posted 20 June 2013 - 06:40 AM

you need to know if the wheel transforms are relative to the chassis or if they are relative to the world origin in 3ds. You then will need to treat them the same in your code.
 
You have it implemented as if they are relative to the world origin. You can switch it to relative to the chassis to see if it works like this:
 

connectionPointCS0 =(btVector3(matWorld._41, matWorld._42, matWorld._43)) + 
(btVector3(chassisWorld._41, chassisWorld._42, chassisWorld._43));

if that makes the wheels display in the correct place, then essentially you've imported the model with a bone hierarchy that will need to be updated every frame or at least every time the car changes position or rotation.


PARTNERS