Skip to content

Commit c294a97

Browse files
committed
Update teleport example
1 parent 82e7c95 commit c294a97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/examples/teleport-a-dynamic-body.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</head>
1414

1515
<body>
16-
<div id="info-text">Teleports the box after 2 seconds to a new position</div>
16+
<div id="info-text">Teleports the box after 2 seconds to a new position and rotation</div>
1717
<script type="importmap">
1818
{
1919
"imports": {
@@ -42,6 +42,7 @@
4242

4343
// set the new position
4444
blueBox.position.set(2, 4, 2)
45+
blueBox.rotation.set(1, 2, 3)
4546
blueBox.body.needUpdate = true
4647

4748
// this will run only on the next update if body.needUpdate = true

0 commit comments

Comments
 (0)