Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Esguerra Montana
WebarTTP
Commits
271dc88c
Commit
271dc88c
authored
10 months ago
by
Esguerra Montana
Browse files
Options
Download
Email Patches
Plain Diff
Update index.html
parent
1a9dd575
master
Pipeline
#9619
passed with stage
in 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/index.html
+2
-2
public/index.html
with
2 additions
and
2 deletions
+2
-2
public/index.html
+
2
-
2
View file @
271dc88c
...
...
@@ -70,14 +70,14 @@ loader.load("https://immersive-web.github.io/webxr-samples/media/gltf/reticle/re
let
fox
;
loader
.
load
(
"
./fox/Fox.gltf
"
,
function
(
gltf
)
{
fox
=
gltf
.
scene
;
fox
.
scale
.
set
(
0.1
,
0.1
,
0.1
);
// Adjust the scale as needed
fox
.
scale
.
set
(
0.
00
1
,
0.
00
1
,
0.
00
1
);
// Adjust the scale as needed
});
session
.
addEventListener
(
"
select
"
,
(
event
)
=>
{
if
(
fox
)
{
const
clone
=
fox
.
clone
();
clone
.
position
.
copy
(
reticle
.
position
);
clone
.
scale
.
set
(
0.001
,
0.001
,
0.001
);
// Ensure the clone is also scaled down
clone
.
scale
.
set
(
2
,
2
,
2
);
// Ensure the clone is also scaled down
scene
.
add
(
clone
);
}
});
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets