Strato's proof of conceptHey guys, long time no see. I wanted to show off some unique mods I've been working on and promote the idea that some things are possible.
Simultaneous vehicle and turret control.Control with WASD and Mouse Click pic for vid
Developer notes:So here we have a standard tank model; a base vehicle and a 2nd mount point for the turret.
With vector math, it is totally possible to create a tank that you can drive and shoot.
There was one issue I had to overcome that should be mentioned:
When telling an AIPlayer to look at a position using %obj.setAimLocation(), Torque wrongly adds the base vehicle's rotation to the AI's eye transform.
Here is what it looks like if you dont fix the rotation. The turrets should be aiming at 1 point I point this out because I think this is the reason why vehicles go in circles if driven by a bot. With this issue fixed, mods like AIVehicles could be possible.
Final ThoughtsSo there's a taste of what kinda things I'll be updating this thread with. If any elaboration is need, please drop a comment. Thanks!