- Home /
 
 
               Question by 
               Jordan Miller 2 · Aug 05, 2010 at 10:28 PM · 
                cameratransformposition  
              
 
              can't use camera position in equasion, help!
var rr2:float;
 
               function Update(){
 
               rr2 = Camera.main.transform.position.x; rr2 = rr2*(1/3)*(-1);
 
               print(rr2);
 
               } 
 
               
               it prints 0. I cannot get it to ever multiply the Camera.main.transform.position.x by anything. it always computes 0 if I try to do that. please help me see what I'm doing wrong.
               Comment
              
 
               
              Please ignore my comment I have been up working al night and gone stupid;)
Your answer