So I've started making a very simple 1rst person shooter. Now, since I'm a perfectionist I actually manage to stumble upon problems even on a simple game as that
Here's the current controller:
http://twisted-pantheon.com/Downloads/shooter%20web/WebPlayer/WebPlayer.htmlnow you see that the white circle moves towards the center of the screen. It represents the direction the weapon is facing. Now, if you turn around fast, it works fine, but as soon as you turn very slowly, it starts to get jaggedly. The reason is the "smooth look to" script which rotates the weapon. If it rotates by small degrees, because the weapon is almost on target, and then the target shifts, it has to suddenly move very fast again. That looks jittery .
Does anyone have any ideas how to make this look smooth? You can have the files if you pm me, I just won't share them freely yet, because it's gonna become a portfolio piece I think
Either way the smooth look at is really all there is to it. If anyone could make it so it'll ease in, that would be great. I'm in over my head with this :S
,kiriri
EDIT: my research nailed the problem down to updating position. if the gun is fixed in place, it won't jump ever . So each time you move the gun it'll change it's position and hence its rotation towards the target. That extra rotation is the jumpy movement. Me needs fix
PS:
Incase you might know a way to fix this, but don't have the time to do it right now, please post it here... I do know how to code, I'm just not having the spark here