Permalink
Browse files

Put the cylinder on top of the box just to show off the hull/hull con…

…tact
  • Loading branch information...
1 parent b51e275 commit 2cf1ed7464d9b709abf29a461191c8b171605b02 @schteppe committed May 10, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 demos/convexhull.js
View
@@ -83,6 +83,7 @@ demo.addScene(function(app){
}
});
+// Various shapes
demo.addScene(function(app){
var world = setupWorld(app);
// ConvexHull box shape
@@ -172,7 +173,7 @@ demo.addScene(function(app){
normals.push(new CANNON.Vec3(0,0,-1));
cylinderShape.addPoints(verts,faces,normals);
var cylinderBody = new CANNON.RigidBody(mass,cylinderShape);
- cylinderBody.position.set(1,-3,size+1);
+ cylinderBody.position.set(0,0,size*4+1);
cylinderBody.quaternion.setFromAxisAngle(new CANNON.Vec3(0,1,0),Math.PI/3);
world.add(cylinderBody);
app.addVisual(cylinderBody);

0 comments on commit 2cf1ed7

Please sign in to comment.