_EagleOwle_

Project

Aug 1st, 2021
1,112
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Возвращает направление перпендикулярное нормали
  2.  
  3. private Vector3 Project(Vector3 forward, Vector3 normal)
  4.     {
  5.         return forward - Vector3.Dot(forward, normal) * normal;
  6.     }
RAW Paste Data