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
1
Question by 1ard · Sep 07, 2012 at 04:21 AM · transformvariablescoordinatesvectors

acessing vector coordinates that are stored in a variables

OK so here is my theory if i get the objects current position say, ( 5.2, 0, 2.3) and store it in a variable i can the pull that variable up later and edit it when i press one of the arrow keys, say like this ( 6.2, 0, 2.3) which will in theory move on the x axis thus moving it forward. Ive gotten to the point were i have edited the variable and printed both the current position and the position i want to move to when i press the up key , but the problem is how do i move this object from ( 5.2, 0, 2.3) to ( 6.2, 0, 2.3) when it's edited position is stored in a variable? as you could tell i need it to be a variable because this position is constantly changing .. any help would be greatly appreciated

Comment
Add comment · Show 7
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 1ard · Sep 15, 2012 at 12:03 AM 0
Share

how do i tick? i though i done it before but appearently not :O

avatar image Bunny83 · Sep 15, 2012 at 12:33 AM 1
Share

Ok, since this is the 3rd time someone really wants to tick an answer but doesn't know how, i made an image :D

avatar image 1ard · Sep 15, 2012 at 12:40 AM 0
Share

oh well why isnt it called ticking ins$$anonymous$$d of clicking

avatar image Bunny83 · Sep 15, 2012 at 12:49 AM 1
Share

Because ticking is the process of "settinng" the tick-mark to make something "ticked", but to do so your have to "click" the tick-mark. This should be a tutorial on how to tick an answer and you actually have to click the tick-mark to do so. Sounds complicated and it seems it really is. :D

avatar image 1ard · Sep 15, 2012 at 12:55 AM 0
Share

its not that its difficult bro its just how was i suppose to figure out that that little check mark below the thumbs up and thumbs down was the tick button.. it should be labeled or something. and if iam missing something give me a break Ive only been on the site for more then a week and havent touched it in 7 days.

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by Fattie · Sep 07, 2012 at 07:55 AM

um ...

 // save the position
 handyPosition = transform.position
 
 // chane the position if you happen to want to
 handyPosition.y += 69;
 
 // move the object immediately to some position
 transform.position = handyPosition
 
 // more tricks ... make a "delta"
 delta = Vector3( 6,9,-1 );
 
 // move the object immediately y that delta
 transform.position -= delta;


is that what you need to know? hope it helps

game engines make game development amazingly simple!

Comment
Add comment · Show 1 · 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 1ard · Sep 07, 2012 at 03:33 PM 0
Share

ok sorry still new to this ^.^"

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

World Space Coordinations are different ? 1 Answer

Change transform variable from outside 1 Answer

Unable to call variable from transform 2 Answers

Get rotation in self coordinate system 1 Answer

List of reserved variables such as transform and rigidbody 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