DanielChappuis / reactphysics3d

Open source C++ physics engine library in 3D

Home Page:http://www.reactphysics3d.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom orientation

v71 opened this issue · comments

Good day, sorry if this is a beginner question I want to use reactphysics3d in my project , and I need to detect collision between 'walls' and convex object, I was wondering if there is some function which accepts an orientation matrix computed somewhere else, since i am not using quaternion.

Hello,
You should check this method to create Quaternion from custom angles
For example, my Object class has rigidbody member, and it contains position and rotation.

See also:
Method for get rotation angles from Quaternion
Method to get OpenGL matrix for transformations

Hello. There is also a constructor of the Quaternion class that takes a rotation matrix.

Quaternion::Quaternion(const Matrix3x3& matrix)

Note: Can I ask you next time to ask your question in the Discussions section instead of creating a new issue?