Vehicle Mounting
by JPaxson · in Torque Game Engine · 05/25/2007 (9:43 am) · 2 replies
Hello,
I am reworking vehicle mounting to do a lot of per mount node options. All is working very well except for a custom vehicle type that I have created. The problem is that when I mount that vehicle in the middle of a jumping state. When this happens I take control of the vehicle, my actionMaps all swap correctly, but my point of view is stuck on the player, and it is like i am remote controlling the vehicle. This only happens with my custom vehicle whose datablock, etc. is setup the same way as the default car (buggy), and my revamped script even works with tanks, etc. Any ideas what the problem might be with my vehicle? I have looked at bounding box size, collision meshes, etc. and nothing is drastically different.
I made an engine modification to player that allows me to kill the jump in progress and made this a console function to get around this, and killing the jump function when mounting works, but Id rather not do it this way.
Any ideas would be appreciated.
I am reworking vehicle mounting to do a lot of per mount node options. All is working very well except for a custom vehicle type that I have created. The problem is that when I mount that vehicle in the middle of a jumping state. When this happens I take control of the vehicle, my actionMaps all swap correctly, but my point of view is stuck on the player, and it is like i am remote controlling the vehicle. This only happens with my custom vehicle whose datablock, etc. is setup the same way as the default car (buggy), and my revamped script even works with tanks, etc. Any ideas what the problem might be with my vehicle? I have looked at bounding box size, collision meshes, etc. and nothing is drastically different.
I made an engine modification to player that allows me to kill the jump in progress and made this a console function to get around this, and killing the jump function when mounting works, but Id rather not do it this way.
Any ideas would be appreciated.
About the author
#2
05/30/2007 (12:36 pm)
Thanks for all the ideas so far =). Anyway, FYI, I narrowed it down to the fact that my vehicle has 8 wheels. Any fewer than 8 works fine, but 8 breaks my player mounting unless I put in my function to kill the player's jump process while it is colliding with the vehicle.
Torque Owner JPaxson