Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Ayivor
ben
Commits
76e8d2a7
Commit
76e8d2a7
authored
Jun 20, 2023
by
Ayivor
Browse files
Update 2-Hit.html
parent
9e0005e6
Pipeline
#8119
passed with stage
in 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
gltf/2-Hit.html
View file @
76e8d2a7
...
...
@@ -70,14 +70,14 @@ loader.load("https://immersive-web.github.io/webxr-samples/media/gltf/reticle/re
scene
.
add
(
reticle
);
})
let
flowe
r
;
loader
.
load
(
"
https://transfer.hft-stuttgart.de/gitlab/bennard.ayivor1/22aybe1mpg/-/raw/master/
public2
/Car_cartoon.gltf
"
,
function
(
gltf
)
{
flowe
r
=
gltf
.
scene
;
let
ca
r
;
loader
.
load
(
"
https://transfer.hft-stuttgart.de/gitlab/bennard.ayivor1/22aybe1mpg/-/raw/master/
gltf
/Car_cartoon.gltf
"
,
function
(
gltf
)
{
ca
r
=
gltf
.
scene
;
});
session
.
addEventListener
(
"
select
"
,
(
event
)
=>
{
if
(
flowe
r
)
{
const
clone
=
flowe
r
.
clone
();
if
(
ca
r
)
{
const
clone
=
ca
r
.
clone
();
clone
.
position
.
copy
(
reticle
.
position
);
scene
.
add
(
clone
);
}
...
...
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