From d6e4c4e7c2b1e28961f1dfe2f25ef96ced60b21b Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 17 Oct 2010 17:19:03 +0000 Subject: core bullet physics support, initial vstrafe support --- src/math/axis.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/math/axis.cc') diff --git a/src/math/axis.cc b/src/math/axis.cc index 8273469..7281047 100644 --- a/src/math/axis.cc +++ b/src/math/axis.cc @@ -35,6 +35,15 @@ void Axis::assign(const Axis & other) } } +void Axis::assign(const btMatrix3x3 & other) +{ + for (size_t i = 0; i < 3; i++) { + for (size_t j = 0; j < 3; j++) { + axis_vector[i][j] = other[i][j]; + } + } +} + Axis & Axis::operator=(const Axis & other) { assign(other); -- cgit v1.2.3