View Single Post
Senior Member
dakota95's Avatar
Status: Offline
Posts: 426
Join Date: Aug 2011
Location: like I would tell you. ;)
Default 12-21-2011, 09:25 PM

Originally Posted by Mr Kidnapper View Post
You don't need a dummy object. What you need is a variable for each axis that is intended to rotate, so at most 3 axes. Set each of these to 0. Now, how fast is your rate of rotation? Say it's 5 per second. Let's make the rotation method
"If hAxis < 45
then gun turn right 5/360 rotations
hAxis = hAxis + 5
else do nothing
if hAxis >-45
then gun turn left 5/360 rotations
hAxis = hAxis - 5
else do nothing"
Turns in either direction 45 at most.
Gosh. Guess I should learn how to use variables at some point. I just tried to get along without 'em. Can you give me a step-by-step and write out exactly what I need to do, where to find the correct stuff, and anything else I might need to know?

Reply With Quote