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 Alanimator · Oct 20, 2012 at 01:35 AM · collidercursorparticle

Mouse cursor colliding with particles how ???

how can i get my cursor to collide with particles during run time ?

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

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by FreeTimeDev · Oct 20, 2012 at 02:14 AM

Your cursor doesn't really exist in the "3d world" in your game. I think of it as sitting on top of it.

You'll have to make an object, probably an invisible sphere, and move this with your cursor.

Comment
Add comment · Show 2 · 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 Alanimator · Oct 20, 2012 at 02:30 AM 0
Share

thought so , so make the object follow the cursor at a high speed so even when i instantly drag the cursor across the screen the gameobject will collide with a particle , but then i would need to lengthen the object to give it depth but then it will collide with too many particles at once and when the cursor is moved to the side it will cause the collisions to appear as if they are off my a mile lol i will just add a game object and make it spawn an object that can shoot the particles :) thanks much :)

avatar image FreeTimeDev · Oct 20, 2012 at 04:45 AM 0
Share

That's one way to do it, and that would have a separate effect from what I was thinking. If you directly modify the the transform.position of the invisible sphere you'll be using to match the relative position of the cursor there wont be any "following"--every frame that your mouse moves so will your object. Search for moving object with mouse on Unity Answers if you need any further help with that specifically.

Remember you can always make it so your Invisible sphere can only knock away so many particles within a time frame, or turn off/on at specific points and other tricks to try and make it work out. It's not about what you see--it's about what happens. Smoke and mirrors is often what game design is about (imo)

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

Mouse cursor colliding with particles how ??? 1 Answer

Get all particles within trigger collider? 1 Answer

Particle Emitter from moving object to cursor location 1 Answer

I can't edit my collider cursor even if I pressed the edit collider button 10 Answers

Instantiated object won't collide with particles 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