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 /
This post has been wikified, any user with enough reputation can edit it.
avatar image
0
Question by Michael Chiou · Aug 12, 2014 at 08:40 PM · objectspick up

How to pick up an object and inspect that object by rotating it!(HELP NEEDED)

Hello there, I am working on a game and one of the main features will be the inspection of items.

The player will be able to pick up an object by clicking on it and then be able to rotate it around.. kinda like the way you inspect stuff in L.A. Noir.

how can i do that.. i tried a lot of stuff.. with raycast.. some other stuff i managed to made it rotate but every item just rotates when i move the mouse.. or withe raycast i just managed to destroy every one i pick up.. please give me points..

is there a script already out there i could use.. something i could watch to see how i can do it ?

Comment
Add comment · Show 2
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 Michael Chiou · Aug 16, 2014 at 02:53 PM 0
Share

Anyone please?

avatar image robertbu · Aug 16, 2014 at 03:46 PM 0
Share

Unity Answers addresses single specific technical questions to help you write your own code. What you have is a general question with multiple technical issues. And you need to be clearer about the behaviors.

  • Does a picked up object instantly appear in front of the user, or drift up to them?

  • Can you drop an object, and if so, does it go back to where it was picked up, or drop to the ground?

  • What input by the user causes something to spin?

  • Does the object need to interact with the environment (i.e. physics) while being held?

  • Is the object to be added to an inventory?

  • Etc.

Break your problem down into pieces and solve each one of them. Start by researching the 'pickup' part of your problem. Some areas you might look into:

  • Physics.Raycast()

  • Vector3.Lerp()

  • Vector3.$$anonymous$$oveTowards()

  • Transform.parent (and parenting in general)

$$anonymous$$gestion: Create an empty game object and make it a child of your camera at the position you want to have items for inspection. This can be your target when you want to move something to be seen.

0 Replies

· Add your reply
  • Sort: 

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

2 People are following this question.

avatar image avatar image

Related Questions

Collestion of objects 3 Answers

Pick up objects to destroy one object. 1 Answer

SAVE OBJECTS IN ARRAY 1 Answer

How to pick up an object using left mouse button 2 Answers

Change materials of connecting objects 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