Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by mthicke2 · Aug 02, 2012 at 06:34 PM · mapgps

Custom map with GPS

I want to make a custom 3d map of a city and have a GPS beacon indicating the user's location within the map. Is this possible in Unity?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by CC Inc · Aug 02, 2012 at 07:05 PM

From here:

"you make a camera, go into "game" tab (next to "scene") and set the position of the camera (i put it in the upper right corner). next, put it up REALLY high up on top of your player and set the projection to orthographic. now make a c# script that will make the camera follow your player. heres the script i used:

 using UnityEngine;
 public class CameraFollow : MonoBehaviour {
 
     public Transform Target;
 
 void LateUpdate()
 {
     transform.position = new Vector3(Target.position.x, transform.position.y, Target.position.z);  
 }
 }

then, set your player as the target."

Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image CC Inc · Aug 04, 2012 at 07:22 PM 0
Share

mthicke2, did this help?

avatar image mthicke2 · Feb 11, 2013 at 06:08 AM 0
Share

I know this has been ages and thanks for the answer. I should have made it clear I am writing this for the iPhone and using the iPhone GPS. What I'm trying to do is basically create a map and show your location on that map based on GPS coordinates. So if my map was a bunch of objects that represent the houses in my neighbourhood, I'd like to use the iPhone GPS to deter$$anonymous$$e your location in world coordinates and use this to show your location on the map.

avatar image robertbu · Feb 11, 2013 at 06:21 AM 1
Share

Not a perfect match, but you might be interested in this:

http://wiki.unity3d.com/index.php/OpenStreet$$anonymous$$ap_for_unity_iPhone

avatar image mthicke2 · Feb 11, 2013 at 11:09 PM 0
Share

Thanks, thats interesting and a good start

avatar image
0

Answer by mthicke2 · Aug 22, 2012 at 04:13 AM

I understand that will make a camera follow a character from a 3rd person perspective. What I am trying to do is use your current GPS position to locate you on a map - the map in this case not being a Google map but a map I have created.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by ejjht · May 18 at 03:51 AM

I also want to match a custom map to world coordinates, does anyone know how to achieve this ?

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

10 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Do unity3d have GPS interface? 1 Answer

GPS not working the same in every device (android-ios) 0 Answers

Need some advices for GPS on an android app 0 Answers

Get Android devices current country location 0 Answers

Ask for Location permission at the start of the App 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges