Camera doesn't show work properly.
When playing in game the player is invisible. The camera also is moving oddly and not following my camera script.
//camera script #pragma strict
var target : Transform; var distance = -10; var lift = 3;
function Update () { transform.LookAt(target); }
here's some links to photobucket, I have sreenshots to what im talking about. http://i1308.photobucket.com/albums/s615/trallaton/Screenshot%2066_zpsavvjqyve.png The first link shows what happens immediately after i click play http://s1308.photobucket.com/user/trallaton/media/Screenshot%2067_zps7hckm80m.png.html The second link shows what happens when I move the character. http://s1308.photobucket.com/user/trallaton/media/Screenshot%2068_zps7apkutxm.png.html And this third link shows what is supposed to look like in game.
Answer by trallaton · Mar 12, 2016 at 12:12 AM
Changed the script to:
pragma strict
var target : Transform; var distance = -10; var lift = 3;
function Update () { transform.position = target.position + Vector3(0, lift, distance); } Now it works!
Your answer
Follow this Question
Related Questions
Trying to get animation to work. Problem with JS. 1 Answer
Javascript Script for Object Follow? 0 Answers
Function Update not working 1 Answer
Script error, cannot fix whatsoever! 1 Answer