Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 Salogeo · Oct 04, 2017 at 08:28 AM · collisionparticlesparticlesystemparticle collisionparticle-system

Particle collision problem

Hi everybody and thank you in advance,

I'm working on a small mobile game in which the player casts magic spells , these spells are particles that should collide with an enemy and then kill it however when a particle does collide with an enemy the position gets messed up like this

https://gyazo.com/2d40db1394cb82406d73541b9e42c005

When i look at the particle in editor mode (so no collision) it works fine

https://gyazo.com/5d06d9684cef59b93082102f1ffd9a9f

could anybody please tell me what is going on exactly? These are the collision settings

https://gyazo.com/9a9ae0585be37d6e47a120866d3a2667

Again thanks in advance and sorry for the noob question.

Comment
Add comment · Show 9
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 ifurkend · Oct 04, 2017 at 08:56 AM 0
Share

Try changing lifeloss in collision module to 1.

avatar image Salogeo ifurkend · Oct 04, 2017 at 09:00 AM 0
Share

Hi, thank you for your quick reply

This has fixed the movement but now the particle wont collide anymore

avatar image ifurkend Salogeo · Oct 04, 2017 at 09:24 AM 0
Share

From your gif, it doesn't look like you need particle collision at all because I assume it's just a tap the screen and check if it's within the enemy's collider, then it triggers the particle effect. As such, just uncheck the collision module, and simply play the effect right on the enemy. The tap and trigger requires a very simple script with Input.Get$$anonymous$$ouseButton(0), RaycastHit(), Camera.main.ScreenPointToRay (Input.mousePosition), Physics.Raycast() and Instantiate(). You can google lot of example codes easily.

Show more comments
avatar image Salogeo · Oct 04, 2017 at 01:26 PM 0
Share

I used you answer as inspiration for my solution and it worked :) the projectiles work too i just have a function that gets called at a certain event now that calculates the damage.

Thank you for the quick answer !

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

114 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 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 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 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 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 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 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

Let Particles sit on Collider without triggering callback - OnParticleCollisionEnter? . 1 Answer

How to keep particles moving past an obstacle after they have collided with it? 3 Answers

Whirlwind spell collision detection 1 Answer

Detecting collision between particle and player. 2 Answers

Is it possible to make a particle system solid??? 2 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