Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: HeadClot on March 24, 2012, 08:32:36 PM

Title: Creating a Realistic Tank Player Controller
Post by: HeadClot on March 24, 2012, 08:32:36 PM
OK, I am re-writing this topic as the thing i wanted to do I found was not really feasible without some programing.

Here is my goal - Create a realistic Player Controller using Unity and Playmaker - Details below.

Now I got the tank to move but not in the fashion I would like it to...

Rotation along the X is way to fast for Tank Movement.

Is there any way I can break up the controls into chunks, so that I have maximum control over the rotation speed, Forward/Reverse Translation?

Any Help would be appreciated :)
Title: Re: Creating a Realistic Tank Player Controller
Post by: Alex Chouls on March 25, 2012, 02:52:04 PM
You can have multiple FSMs on an object. Make one for each axis of your controller. E.g., a rotation FSM, a foward/reverse FSM, a firing FSM...
Title: Re: Creating a Realistic Tank Player Controller
Post by: HeadClot on March 25, 2012, 03:33:07 PM
Hey Thanks :D

Going to try this out right now :)
Title: Re: Creating a Realistic Tank Player Controller
Post by: SirNikkolas on March 25, 2012, 08:48:09 PM
http://www.unifycommunity.com/wiki/index.php?title=SimpleTankController

This is a really good realistic tank movement script. Everything is easily customizable. I also made the camera follow the turret. and used the "Mouse Look" FSM to look around. Took some messing around to get it working right w/o sending my tank flying into the air, but its working fine for me now :)
Title: Re: Creating a Realistic Tank Player Controller
Post by: SirNikkolas on March 25, 2012, 08:56:22 PM
Also if anyone can help me figure out how to make this work for touchpads or joysticks on for iOS, that would be amazing :)