10 Matching Annotations
  1. Jun 2025
    1. / state.step

      basically times fps(e.g. divide by 0.016 = time 60), this is because angular velocity is a per second unit, engine subsequently will integrate this value by times delta again.

    2. forward_dir.cross(target_dir)

      a vector that will be the rotation axis, perpendicular to both vectors, and since they are unit vectors, this is sin(a). this means it will rotate to target direction faster if their angle are larger.

  2. Oct 2024
  3. Oct 2023
  4. Jul 2017