Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 valeriopavan · Apr 02, 2020 at 02:24 PM · rigidbodycollision detectionparticlesystemparticle collision

Particles colliders do not be detected by bullets with 'continuos dynamic' collision detection.

Hello, I'm feeling very tired and demotivated :(

I have spent an entire day to understand all about the collision detection in order to solve my problem (bullets were passing through enemies).

After setting up my bullet's rigidbody to 'continuos dynamic' the result is:

1) All the collisions are perfectly detected by the AI enemies. 2) Some collisions with particles ARE NOT DETECTED by particle colliders (In the particle system: collision quality 'high', enabled dynamic colliders).

Really I,m very tired because I'm started to think that problems are not about my knowledge, but about an exaggerated complexity of the Unity engine.

Thanks.

Valerio

Comment
Add comment · Show 1
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 SmokeyWitch · Apr 03, 2020 at 01:35 PM 0
Share

Hi @valeriopavan, maybe they didn't collide actually. check their position in the scene view. Also, the particles collision config must be something like this. alt text

image.png (17.2 kB)

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by valeriopavan · Apr 03, 2020 at 02:01 PM

Thanks for reply @SmokeyWitch , the config its quite the same. -The Acceleration of bullet's rigidbody is 1. -The velocity of bullet's rigidbody is 600. -The 'lifetime loss' of particles is 1 because they are destroyed immediately with the bullet's contact.

This is the situation: Particle sys: alt text Bullet's rigidbody: alt text

Thanks!


bullet-rigidbody.png (44.6 kB)
particle-collider-config.png (71.2 kB)
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 SmokeyWitch · Apr 03, 2020 at 02:25 PM

your game is 3D. so it depends on the shape you used for your particle system and collider bound of the bullet. As you said "Some collisions with particles ARE NOT DETECTED by particle colliders" there isn't any problem collision detection. some particles are out of the bullets collider bounds.

Comment
Add comment · Show 3 · 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 valeriopavan · Apr 03, 2020 at 02:36 PM 0
Share

@SmokeyWitch, bullets are using a sphere Collider and particles are meshes (boxes and balloons dimensionally greater than a simple particle) with a sort of sphere collider too (I also increased the radius scale of particles colliders, in order to avoid the issue you talking about). I clearly can see some bullets passing through particles...

avatar image SmokeyWitch valeriopavan · Apr 03, 2020 at 02:46 PM 0
Share

So I think that's the problem of unity collision system. maybe decreasing bullets speeds makes difference. better way is to use raycast for detecting collisions

avatar image valeriopavan SmokeyWitch · Apr 03, 2020 at 02:52 PM 0
Share

Yep! I will try raycast. I was avoiding to use it because I need to build for Oculus Go (Android) and i was concerned about performance, but I'll try. Thanks for your help, I really appreciate it! :)

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

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

Unity 2D Particle System's collider doesn't trigger other colliders for scripts. 0 Answers

How to make particles collide with something but at the same time phase through it 2 Answers

Unity 5 object collision not detecting 1 Answer

Remaining bullets ridgidbody bounses of after the enemy has been destroyed. 2 Answers

Inconsistent Particle Collision detection 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