PxComputeBasisVectors

Defined in include/foundation/PxMathUtils.h

inline void PxComputeBasisVectors(const PxVec3 &dir, PxVec3 &right, PxVec3 &up)

Compute two normalized vectors (right and up) that are perpendicular to an input normalized vector (dir).

Parameters
  • dir[in] is a normalized vector that is used to compute the perpendicular vectors.

  • right[out] is the first of the two vectors perpendicular to dir

  • up[out] is the second of the two vectors perpendicular to dir