- Home /
problem is not related to question
the default camera makes everything look like its moving towards the center?
Im making a game sort of like star fox 64. unfortunately it doesnt matter how my player moves, Everything looks like its pointing towards the center even though I know it isnt. I basically want an orthographic camera thats capable of showing depth. Is there any simple way to accomplish this with the camera settings?
Answer by Vice_Versa · Aug 07, 2018 at 02:45 PM
Im going to close this as it turned out the bug was completely unrelated to the question. My bullets were spawning in the right place but not moving correctly, and the reticles I had needed to be faarter away to accurately see where you are shooting.
Answer by Bunny83 · Aug 06, 2018 at 09:07 PM
Sorry but i have no idea what you mean. StarFox 64 uses a perspective camera all the time. If you have a cockpit view the camera is directly linked to the player and in third person view it just follows the player and only adjusts it's view when the player gets closer to the screen edge. There are endless possibliities how something like that could be implemented and it also depends on the actual gameplay and what kind of movement is allowed by the player.
An orthographic camera / projection always shows parallel lines at the same distance everywhere. Otherwise it wouldn't be orthographic. So orthographic and perspective are mutual exclusive ^^. StarFox is using an ordinary perspecive projection just like the default camera of Unity.
You need somehow be more precise what you actually want. Most of the look and feel of a game depends on the camera movement. For example this guy here actually just uses a smooth follow third person camera. So it actually moves exactly with the player but just lags behind a bit.
Also, believe it or not, other people have already worked on something like that
thank you for the reply, first of all, lets ignore the cockpit view I forgot that even existed, this is strictly third person view. so think of it like this, there is an asteroid co$$anonymous$$g towards you, move the ship/reticle so that you should be able to shoot said asteroid, when you are shooting, you have no way of knowing whether you are able to shoot that asteroid or not because when you shoot, every single bullet looks like its moving to the same spot: the dead center of the screen. these bullets are all shooting in the direction of the ship, but you cant accurately aim anything because the direction the bullets are actually moving, and the direction they appear to be moving are not the same thing.
When the camera is in orthographic mode, you can clearly see which way the bullets are going, but never change size because there is no depth in orthographic mode.
Basically, I want to be able to "adjust the field of view" or something along those lines to achieve this.