Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

[Solved] Copy vector3 values to another vector3?

$
0
0
I want to copy vector3 values to another vector3. Also, use float on other case.
Code (CSharp):
  1. float aa,ss,dd;
  2. Vector3 ls,ToPoint;
  3. bool StandPoint_bool;
  4.  
  5.     void update {
  6.  
  7.     if (StandPoint_bool == false)
  8.     {
  9.         ToPoint = new Vector3 (aa,ss,dd);
  10.     }
  11.     else
  12.     {
  13.         ToPoint =  ls;
  14.     }
  15.  
  16.   }

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>