- Home /
how to make tank aiming
ok so im trying to make a tank TPS and i have done the movement stuff and the camera stuff i learn from fps shooter. the problem is in fps your body and head move together, what i want is that my tank head can rotate when i move the camera with my mouse while the body rotate with A and D key.
Comment
Answer by vladvladl1 · Aug 14, 2017 at 07:26 AM
put camera under the tank turret and then make a while loop( while mouse is pressed do rotate left if "a" is pressed and if "d" is pressed rotate right. You can do that with rb.transform.rotate(x,y,z) which rb means your rigidbody