We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82e7c95 commit c294a97Copy full SHA for c294a97
src/examples/teleport-a-dynamic-body.html
@@ -13,7 +13,7 @@
13
</head>
14
15
<body>
16
- <div id="info-text">Teleports the box after 2 seconds to a new position</div>
+ <div id="info-text">Teleports the box after 2 seconds to a new position and rotation</div>
17
<script type="importmap">
18
{
19
"imports": {
@@ -42,6 +42,7 @@
42
43
// set the new position
44
blueBox.position.set(2, 4, 2)
45
+ blueBox.rotation.set(1, 2, 3)
46
blueBox.body.needUpdate = true
47
48
// this will run only on the next update if body.needUpdate = true
0 commit comments