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 ewagstaff · Jun 19, 2017 at 03:23 PM · particlesparticle systemparticle emitterparticle collision

Particle collision radius origin is offset to the left. How can I make it centered?

Hi all,

I'm making a 2D top-down shooter in Unity and I'm using particles for bullets instead of GameObjects to try to save on performance cost. I've gotten pretty far in development when I started to notice a quirk of the particle collision system (at least as far as I understand it). Some shots appear to go through enemies, even though the center of the particle passes through them.

alt text

Those jellyfish are the enemies. That dark blue circle is a particle bullet (set to a sprite material) that is passing through the bottom jellyfish.

I ruled out collision accuracy issues by making sure all the colliders were dynamic and the collision accuracy settings were at their highest possible value. Because it's a classic top down shooter and the player always shoots directly up, I was able to observe that if a shot like the one above misses the first time, it will continue to miss every time unless the player moves to the right. That's when I realized that the origin of the collision radius is in the top left corner, not in the center.

Here's another screenshot of a bullet that is about to successfully collide:

alt text

Unity does have a helpful attribute for particle collisions called "Radius Scale," however, because the origin itself appears to be offset, the radius increases around the top left corner so it's still not helping to assure accuracy. Does anyone know how to change the origin of the particle to fix this issue? Or is this a bug in particle collisions?

miss.png (26.4 kB)
hit.png (29.7 kB)
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
0

Answer by ewagstaff · Jun 19, 2017 at 03:26 PM

Also, here are the particle system settings in case that helps answer questions about the setup (I wish the "Visualize Bounds" checkbox would work, but it does not seem to):

alt text

alt text


screen-shot-2017-06-19-at-82037-am.png (64.8 kB)
screen-shot-2017-06-19-at-82051-am.png (144.0 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

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

68 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

Related Questions

Particle effects won't collide/play properly 0 Answers

How to create 3D particle effect? 1 Answer

How to detect which exact particle element from a particle system hit a collider? 0 Answers

Getting particles from the same system to act differently with different objects? 0 Answers

my partical fade away when the emitter moving fast ? 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