Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
0
Question by Victor · Jan 14, 2011 at 06:18 PM · cameraexportpathcoordinatesxy

Export camera path (first person controller) in x,y coordinates

Hi - I am looking for a script that will allow me to export the movement path (camera path) from a first person controller in x,y coordinates. I am really new to scripting so I will need some help implementing this if possible. The idea is that I want to create a game that after the person is done playing I have record of where they walked in x,y coordinates. Maybe as an excel export?

Thank you,

Vic

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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by fireDude67 · Jan 15, 2011 at 01:29 AM

From a top-down perspective, you would simply grab the X and Z coordinates because Y is up/down. Then every frame, in FixedUpdate add the current transform.position to an array of Vector3's.

Comment
Add comment · Show 2 · 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 Victor · Jan 17, 2011 at 09:45 PM 0
Share

Hey - Thanks for the quick reply but i think I need more help than that. What I am trying to do is to do is to create a script the will record the x and y coordinates of the first person player (or camera attached to it) while it walks around the environment and for these coordinates to be saved in an excel file once you stop playing the game. I am desperately trying to get something like this working for a project I am currently working on and while I am pretty good at designing virtual worlds, my knowledge of scripts is shameful :) Any help of examples I can download is greatly appreciated.

avatar image fireDude67 · Jan 18, 2011 at 10:00 PM 0
Share

I think you would need an Excel plugin for that.

avatar image
0

Answer by Socrates · May 06, 2011 at 03:32 AM

If you want to export the data to Excel, look up information on CSV (comma-separated values) file format. It is basically a text file where each data point is separated by commas. Excel can import and export this file type easily. It has no formatting, but it will have your data.

You can find the basic specs on Wikipedia.

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

No one has followed this question yet.

Related Questions

How to get current Camera coordinates in a script 2 Answers

How to make camera position relative to a specific target. 1 Answer

How to get Camera's field of view boundaries coordinates? 3 Answers

Best practice for having camera travel along path 2 Answers

Circular camera path 1 Answer


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