| 98 | } |
| 99 | |
| 100 | void Camera::lookAt(const PxVec3& position, const PxVec3& target) |
| 101 | { |
| 102 | PxVec3 dir, right, up; |
| 103 | Ps::computeBasis(position, target, dir, right, up); |
| 104 | |
| 105 | PxTransform view; |
| 106 | view.p = position; |
| 107 | view.q = PxQuat(PxMat33(-right, up, -dir)); |
| 108 | setView(view); |
| 109 | } |
| 110 | |
| 111 | |
| 112 | enum FrustumPlaneIndex |
no test coverage detected