• 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 MDennis · May 25, 2011 at 09:04 AM · positionpositioningdefault

Default positions

Just out of curiosity really, where is the default 0,0,0 position? Is it to where the gameobject is? In the gamespace? and if i have a child object set to a parent object, is that childs 0,0,0 position set to the parents position? Or in the gamespace?

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
1
Best Answer

Answer by Meltdown · May 25, 2011 at 09:13 AM

The default 0,0,0 position is set in what is known as 'world space'. So if you add an object, at 0,0,0, you can say its position is in 0,0,0 in world space.

If you move it to 5,5,5 in world space, and then add a child object to it, the child's local position will be its offset to the position of the parent.

Comment
Add comment · Show 3 · 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 MDennis · May 25, 2011 at 09:17 AM 0
Share

ok so say for example, my 'player' is at 10,10,0, and i spawn an object from that players position and it is 'firing' towards 10,50,0, would the default 0,0,0 of that firing object be where the player is?

avatar image Ejlersen · May 25, 2011 at 09:18 AM 1
Share

If its a child of the parent, then its local position would be (0,0,0). However, in world space it would be (10,10,0).

avatar image MDennis · May 25, 2011 at 09:19 AM 0
Share

ok cool, i think i understand it more now, just going to put it into practise :) thank you both

avatar image
1

Answer by Ejlersen · May 25, 2011 at 09:10 AM

Depends.

A game object can have a world position and a local position.

The local position depends on its parent, so if it has a local position of (10,0,0) and the parent has a world position at (0,5,0), then the child would have a world position at (10,5,0).

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Move object with Translate on X axis (with mouse) 0 Answers

How to place an object near N number of objects in order to avoid overlap? 0 Answers

How to implement a system for "Road-Construction"? 1 Answer

Placing object based on child relative to another gameObject. 1 Answer

how to control the horizontal position of object in a 4 units wide plane? 0 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