Skip to content
GitLab
Menu
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
Jun 17, 2024
by
Esguerra Montana
Browse files
Update index.html
parent
1a9dd575
Pipeline
#9619
passed with stage
in 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
public/index.html
View file @
271dc88c
...
@@ -70,14 +70,14 @@ loader.load("https://immersive-web.github.io/webxr-samples/media/gltf/reticle/re
...
@@ -70,14 +70,14 @@ loader.load("https://immersive-web.github.io/webxr-samples/media/gltf/reticle/re
let
fox
;
let
fox
;
loader
.
load
(
"
./fox/Fox.gltf
"
,
function
(
gltf
)
{
loader
.
load
(
"
./fox/Fox.gltf
"
,
function
(
gltf
)
{
fox
=
gltf
.
scene
;
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
)
=>
{
session
.
addEventListener
(
"
select
"
,
(
event
)
=>
{
if
(
fox
)
{
if
(
fox
)
{
const
clone
=
fox
.
clone
();
const
clone
=
fox
.
clone
();
clone
.
position
.
copy
(
reticle
.
position
);
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
);
scene
.
add
(
clone
);
}
}
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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