Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arif
AR
Commits
14cf2af0
Commit
14cf2af0
authored
Jun 24, 2023
by
Arif
Browse files
Update 2-Hit.html
parent
b8d9b2f4
Pipeline
#8303
passed with stage
in 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
public/2-Hit.html
View file @
14cf2af0
...
...
@@ -71,7 +71,7 @@ loader.load("https://immersive-web.github.io/webxr-samples/media/gltf/reticle/re
})
let
flower
;
loader
.
load
(
"
https://transfer.hft-stuttgart.de/gitlab/
22azah1mpg/ar_civ2/-/raw/master/gltf/Unity2Skfb
.gltf
"
,
function
(
gltf
)
{
loader
.
load
(
"
https://transfer.hft-stuttgart.de/gitlab/
azizularif/ar/-/raw/master/Arif/model
.gltf
"
,
function
(
gltf
)
{
flower
=
gltf
.
scene
;
});
...
...
@@ -79,7 +79,7 @@ session.addEventListener("select", (event) => {
if
(
flower
)
{
const
clone
=
flower
.
clone
();
// Set the desired scale for the icon.
const
iconScale
=
0.
09
;
// Adjust the scale value as needed
const
iconScale
=
0.
1
;
// Adjust the scale value as needed
clone
.
scale
.
set
(
iconScale
,
iconScale
,
iconScale
);
clone
.
position
.
copy
(
reticle
.
position
);
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