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
2
Question by Tom Norris · Apr 11, 2011 at 12:59 AM · colliderparticlemanualemit

Particle Colliders and manual particles

I'm not doing anything exceptional here, I just have a particle emitter set up to leave a trail of particles with a collider on them. That all works fine except that the trail is too spuratic when left to the standard emitter.

I set the emitter to have a maximum number of particles 0 so that it would not automatically emit particles, then tell it to emit a particle every fixed update. This gives me great control over the flow of particles from my system, but now the particles don't collide.

I've tested a couple different ways and determined that from the same emitter any particle automatically emitted generates a collision message like it should, but any particle that I manually produce with the Emit() function(in any of it's forms) does not. I have also found that both ways of emitting particles still make the particles bounce on collision like they should.

Has anyone else run into this kind of problem or am I out in left field? Alternative solutions to keeping track of a trail would be interesting as well.

Comment
Add comment · Show 5
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 femi · Sep 19, 2011 at 10:55 AM 0
Share

I have exactly the same problem - particles created by assigning to .particles property don't interact with collider in the same way built-in particles do. They ARE affected by particle collider's properties but don't change their direction (e.g. if bounce factor is set to 10 they will accelerate through the collider).

Have you been able to solve this?

avatar image femi · Sep 19, 2011 at 11:34 AM 0
Share

Update: I have rewritten the emission code using particleEmitter.Emit(...) calls ins$$anonymous$$d of writing to .particles and it didn't make any difference (but the code looks cleaner).

avatar image syclamoth · Sep 19, 2011 at 11:37 AM 0
Share

This is a pretty weird problem- are you animating the particles manually, or are you using a particle animator component? I have a sneaking suspicion that world colliders work by telling the particle animator what to do.

avatar image femi · Sep 19, 2011 at 11:55 AM 0
Share

I use particle animator, yes they must be working together somehow. I'm gonna try to change the approach from manual emission to overriding parameters of automatically emitted particles...

avatar image femi · Sep 21, 2011 at 08:09 AM 0
Share

Update: my problem seems to have been unrelated to the original question.

I use custom billboarding shaders for particles which assume particles of size 0 (the shader then makes sure the particle is properly resized). It's those particles that go through the colliders.

Setting the particle size to 1e-9 solves the problem for large portion of them, 1e-4 makes most interact with the colliders.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Bunny83 · Apr 11, 2011 at 01:49 AM

Well, i don't have such problems like you. I didn't worked that much with particles (most of them are created by our artists and i'm the programmer :D). You could keep track of all particles yourself.

ParticleEmitters have a particles property that returns a copy of all particles. You can change everything on this array and if you assign it back to .particles all changes will be "saved". The array holds Particles. If you're good at scripting you can do really awsome things ;)

Good luck

Comment
Add comment · Show 1 · 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 Tom Norris · Apr 25, 2011 at 03:37 PM 0
Share

That is basically what I've been doing. The problem is I haven't found what is different about my manual particles from the auto generated ones to control it. Thanks though.

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

2 People are following this question.

avatar image avatar image

Related Questions

Instantiate a particle emitter when object touches ground. 1 Answer

Emit Particle when the parent gets collision 2 Answers

Get all particles within trigger collider? 1 Answer

Instantiated object won't collide with particles 1 Answer

how emit same number of particles in every edge? 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