getWorldVertex method

Vec3 getWorldVertex(
  1. int i,
  2. Vec3 pos,
  3. Quaternion quat,
  4. Vec3 out,
)

Get a vertex from the trimesh,transformed by the given position and quaternion. @return The "out" vector object

Implementation

Vec3 getWorldVertex(int i, Vec3 pos, Quaternion quat, Vec3 out) {
  getVertex(i, out);
  Transform.pointToWorldFrame(pos, quat, out, out);
  return out;
}