diff options
author | Stijn Buys <ingar@osirion.org> | 2010-10-17 17:19:03 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-10-17 17:19:03 +0000 |
commit | d6e4c4e7c2b1e28961f1dfe2f25ef96ced60b21b (patch) | |
tree | 63744dff093a8b23f65d9c68b922b678805647d9 /src/math/axis.cc | |
parent | ea6e6bb769d713ac55114c1940626f13e384ebed (diff) |
core bullet physics support,
initial vstrafe support
Diffstat (limited to 'src/math/axis.cc')
-rw-r--r-- | src/math/axis.cc | 9 |
1 files changed, 9 insertions, 0 deletions
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); |