Skip to content

Commit 2a1b34a

Browse files
committed
fixed error in collision bbox code
1 parent d329848 commit 2a1b34a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ <h3>First step: add collision detection</h3>
497497
<pre><code data-language="javascript">
498498
// bounding box of robot link in local link coordinates
499499
robot.links[x].bbox = new THREE.Box3;
500-
robot.links[x].bbox = robot.links[x].bbox.setFromPoints(robot.links[robot.base].geom.geometry.vertices);
500+
robot.links[x].bbox = robot.links[x].bbox.setFromPoints(robot.links[x].geom.geometry.vertices);
501501
</code></pre>
502502

503503
<p>

0 commit comments

Comments
 (0)