Hello Unity3D i have a problem with my character in the game.Why is it that when i play the game my character and the camera that follows the character always move out of place?For example…when im in the scene window my character and camera is perfectly fine but when im in the game window the character is in the air and the camera following him is way underneath the stage?Does any anyone here know why?If you do please tell me because i have spend hours doing this and can’t seem to find the error.Also i am using a scrip called Camera follow and added to my main camera to make the character follow the character.and im using the BotControlScript on my character.
Hi I dont know if you are using the default camera scripts given by Unity3D or you created ur own.
However, the reason for camera dislocation is because:
- You would have assigned the camera to the player and the camera would take the (0,0,0) of the player which is at his foot.
- Since its in (0,0,0) of the model(foot) you have this issue, make the camera posistion to be player model’s position + an OFFSET VALUE TO Y (say you add 5 units to Y axis). So the Camera’s transform position would be (0,5,0) with respect to player.
Forgive im new to unity…i have check my main camera position and its not 0,0,0.Is it somewhere else like the botcontrolscript or the script i made(CameraFollow) or is it somewhere else?