From 11ad0f0dfd3eb36fe76c9244df3465a002ce7501 Mon Sep 17 00:00:00 2001 From: Xuchen Han Date: Fri, 27 Sep 2019 15:30:53 -0700 Subject: [PATCH] add btMatrix3x3 constructor from vectors --- src/LinearMath/btMatrix3x3.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/LinearMath/btMatrix3x3.h b/src/LinearMath/btMatrix3x3.h index 0a08ae409..cc33a6866 100644 --- a/src/LinearMath/btMatrix3x3.h +++ b/src/LinearMath/btMatrix3x3.h @@ -125,6 +125,13 @@ public: m_el[2] = other.m_el[2]; return *this; } + + SIMD_FORCE_INLINE btMatrix3x3(const btVector3& v0, const btVector3& v1, const btVector3& v2) + { + m_el[0] = v0; + m_el[1] = v1; + m_el[2] = v2; + } #endif