Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 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.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Proper way to center a game object into an UI image? 1 Answer

Different unit size on mobile and PC 1 Answer

Seemingly random bug when positioning player on scene start 0 Answers

Combine Meshes Problem 2 Answers

EZ still isn't positioning right 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