enable roll angle in pybullet.computeViewMatrixFromYawPitchRoll / b3ComputeViewMatrixFromYawPitchRoll

This commit is contained in:
erwin coumans
2021-04-28 12:13:31 -07:00
parent a142e8d174
commit b696ed7d7b

View File

@@ -4572,7 +4572,7 @@ B3_SHARED_API void b3ComputeViewMatrixFromYawPitchRoll(const float cameraTargetP
b3Scalar yawRad = yaw * b3Scalar(0.01745329251994329547); // rads per deg
b3Scalar pitchRad = pitch * b3Scalar(0.01745329251994329547); // rads per deg
b3Scalar rollRad = 0.0;
b3Scalar rollRad = roll * b3Scalar(0.01745329251994329547); // rads per deg
b3Quaternion eyeRot;
int forwardAxis(-1);