Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2010-10-17 17:19:03 +0000
committerStijn Buys <ingar@osirion.org>2010-10-17 17:19:03 +0000
commitd6e4c4e7c2b1e28961f1dfe2f25ef96ced60b21b (patch)
tree63744dff093a8b23f65d9c68b922b678805647d9 /src/math/vector3f.cc
parentea6e6bb769d713ac55114c1940626f13e384ebed (diff)
core bullet physics support,
initial vstrafe support
Diffstat (limited to 'src/math/vector3f.cc')
-rw-r--r--src/math/vector3f.cc7
1 files changed, 7 insertions, 0 deletions
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);