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/vector3f.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/math/vector3f.cc') diff --git a/src/math/vector3f.cc b/src/math/vector3f.cc index 4594665..421d84e 100644 --- a/src/math/vector3f.cc +++ b/src/math/vector3f.cc @@ -48,6 +48,13 @@ void Vector3f::assign(const Vector3f & other) memcpy(coord, other.coord, sizeof(coord)); } +void Vector3f::assign(const btVector3 & other) +{ + for (size_t i = 0; i < 3; i++) { + coord[i] = other[i]; + } +} + Vector3f & Vector3f::operator=(const Vector3f & other) { assign(other); -- cgit v1.2.3