From b696ed7d7b3dda73304f1484952a958f2bb32fac Mon Sep 17 00:00:00 2001 From: erwin coumans Date: Wed, 28 Apr 2021 12:13:31 -0700 Subject: [PATCH] enable roll angle in pybullet.computeViewMatrixFromYawPitchRoll / b3ComputeViewMatrixFromYawPitchRoll --- examples/SharedMemory/PhysicsClientC_API.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/SharedMemory/PhysicsClientC_API.cpp b/examples/SharedMemory/PhysicsClientC_API.cpp index ca60e9e13..1d0c4929d 100644 --- a/examples/SharedMemory/PhysicsClientC_API.cpp +++ b/examples/SharedMemory/PhysicsClientC_API.cpp @@ -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);