Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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);