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 Oreo14791999 · Jul 02, 2013 at 04:47 PM · objectcubecreate

how to create a popping out object ?

I'm new to unity and have only created 1 other game before so please cut me some slack!I want an object to pop out at you and when you hit/press the object it gets destroyed? I am okay with the destroy part (that's fairly basic) but how would I the object pop out? I also want the object to get bigger when it pops out, but it is not the most important question? Thanks in advance!!

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 NicoLocke · Jul 02, 2013 at 07:09 PM 0
Share

At what point would you like the object to pop out? When you walk near it? When you click on it?

avatar image robertbu · Jul 03, 2013 at 12:57 AM 0
Share

Please don't try and ask the same question twice. If you are not getting an answer with in a reasonable amount of time (24 to 48 hours), you can add a comment to your question with the word "bump." This will place it in the top of the queue. In addition, you should respond to the comments and answers you've already received on how the do or do not work for you.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by ebogguess · Jul 02, 2013 at 04:53 PM

When you say "pop out" do you mean, you want to create an object that comes toward the camera/player? If so, you can get the direction from the object to the camera by subtracting their position vectors, and move the object along that vector by a predetermined amount. The object will appear larger as it grows closer to the camera, which sounds like the effect you want.

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
avatar image
0

Answer by NicoLocke · Jul 02, 2013 at 07:23 PM

I would create an animation, then you can either play the animation automatically on start or trigger the animation with a function (OnMouseDown, OnCollision etc).

The animation could consist of the object "popping out" by moving on the Y axis over time.

To make the object get bigger, you can scale the object up with in the same animation.

Here is an introduction video on animation...

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

17 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

obect will not appear in scene 0 Answers

Projecting created objects? 2 Answers

What is the concept of "object" class (not gameObject, just object) in Unity scripting? 3 Answers

Drag Rigid Body No Distance Limit and how to add Mouselock to a scrip 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