Exemple #1
0
 // Update is called once per frame
 void Update()
 {
     if (vc && target)
     {
         velMapper = BasicMath.Map(vc.diff, vc.min, vc.max, mapLow, mapHigh);
         target.forcePerDistance = velMapper;
     }
     else
     {
         EnableMapper();
     }
 }