예제 #1
0
 void Update()
 {
     if (isValid())
     {
         TBVector forward = TBVector.forward();
         TBVector up      = TBVector.up();
         if (useObjectRotation_)
         {
             forward = Utils.toTBVector(transform.forward);
             up      = Utils.toTBVector(transform.up);
         }
         spat_.setRotation(forward, up);
     }
 }
예제 #2
0
 static public Vector3 toVector3(TBVector vector)
 {
     return(new Vector3(vector.x, vector.y, vector.z));
 }