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
Ayivor
ben2
Commits
ca2d3138
Commit
ca2d3138
authored
1 year ago
by
Ayivor
Browse files
Options
Download
Email Patches
Plain Diff
Update 2-Hit.html
parent
43bb92e1
Pipeline
#8128
passed with stage
in 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/2-Hit.html
+4
-4
public/2-Hit.html
with
4 additions
and
4 deletions
+4
-4
public/2-Hit.html
+
4
-
4
View file @
ca2d3138
...
@@ -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
scene
.
add
(
reticle
);
scene
.
add
(
reticle
);
})
})
let
flowe
r
;
let
ca
r
;
loader
.
load
(
"
https://transfer.hft-stuttgart.de/gitlab/bennard.ayivor1/ben2/-/raw/master/public/Car_cartoon.gltf
"
,
function
(
gltf
)
{
loader
.
load
(
"
https://transfer.hft-stuttgart.de/gitlab/bennard.ayivor1/ben2/-/raw/master/public/Car_cartoon.gltf
"
,
function
(
gltf
)
{
flowe
r
=
gltf
.
scene
;
ca
r
=
gltf
.
scene
;
});
});
session
.
addEventListener
(
"
select
"
,
(
event
)
=>
{
session
.
addEventListener
(
"
select
"
,
(
event
)
=>
{
if
(
flowe
r
)
{
if
(
ca
r
)
{
const
clone
=
flowe
r
.
clone
();
const
clone
=
ca
r
.
clone
();
clone
.
position
.
copy
(
reticle
.
position
);
clone
.
position
.
copy
(
reticle
.
position
);
scene
.
add
(
clone
);
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