Skip to content

Commit 63b1574

Browse files
committed
Pass indeces to box
1 parent f5d1abf commit 63b1574

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/shapes/Box.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class Box extends Shape {
6565

6666
const axes = [new V(0, 0, 1), new V(0, 1, 0), new V(1, 0, 0)]
6767

68-
const h = new ConvexPolyhedron(vertices, indices)
68+
const h = new ConvexPolyhedron(vertices, indices, axes)
6969
this.convexPolyhedronRepresentation = h
7070
h.material = this.material
7171
}

0 commit comments

Comments
 (0)