mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-07-19 12:39:46 +00:00
enable roll angle in pybullet.computeViewMatrixFromYawPitchRoll / b3ComputeViewMatrixFromYawPitchRoll
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user