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>2011-01-26 15:56:10 +0000
committerStijn Buys <ingar@osirion.org>2011-01-26 15:56:10 +0000
commitc3182222bd3fef6009f98205c0203d61a7509b11 (patch)
tree32046ab6ae2d54f0930f8d5289f45a6807874635 /src/model/collisionmesh.cc
parent035653e94a3d74b8f18c993034199d7cd08a895a (diff)
Corrected the origin alignment of collision mesh bodies.
Diffstat (limited to 'src/model/collisionmesh.cc')
-rw-r--r--src/model/collisionmesh.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/model/collisionmesh.cc b/src/model/collisionmesh.cc
index 616ee0d..b20074f 100644
--- a/src/model/collisionmesh.cc
+++ b/src/model/collisionmesh.cc
@@ -73,4 +73,16 @@ void CollisionMesh::add_triangle(const math::Vector3f & v0, const math::Vector3f
collisionmesh_size += 1;
}
+void CollisionMesh::translate(const math::Vector3f translation)
+{
+ /*
+ IndexedMeshArray & indexes = collisionmesh_triangles->getIndexedMeshArray();
+ for (size_t i =0; i < indexes.size(); i++) {
+ btIndexedMesh & mesh = indexes[i];
+
+
+ }
+ */
+}
+
} // namespace model