Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

cannon js parent child

var shape = new CANNON.Box(new CANNON.Vec3(1,1,1));

var body = new CANNON.Body({ mass: 1 });
for(var i=0;i<10){
    body.addShape(shape, new CANNON.Vec3(i/5-3,0/5-3,-2+0.1));
}
 
PREVIOUS NEXT
Tagged: #cannon #js #parent #child
ADD COMMENT
Topic
Name
7+8 =