Skip to content

Commit

Permalink
add permanent link of 3D model source
Browse files Browse the repository at this point in the history
  • Loading branch information
ShanMa1991 committed Jul 1, 2021
1 parent 07f1aa4 commit 4bfdb90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Navigation-Examples/Examples/Custom-User-Location.swift
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ class CustomUserLocationViewController: UIViewController, NavigationMapViewDeleg

func setupPuck3D() {
// It's required to provide a `Puck3DConfiguration` to the `UserLocationStyle.puck3D`, a `gltf` 3D asset will be used as the `Model` source.
// The model source is from NASA's curiosity(clean) in https://github.com/nasa/NASA-3D-Resources/blob/master/3D%20Models/Curiosity%20(Clean)/MSL_clean.blend
// NASA's Curiosity rover from https://github.com/nasa/NASA-3D-Resources/blob/463f2b2941e3e95acfcbb12f783070e9d92ee267/3D%20Models/Curiosity%20(Clean)/MSL_clean.blend

let uri = Bundle.main.url(forResource: "MSL_clean",
withExtension: "gltf")
// Instantiating the model. The position is the coordinates of the model in `[longitude, latitude]` format.
Expand Down

0 comments on commit 4bfdb90

Please sign in to comment.