Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 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
4
Question by multinfs · Aug 29, 2012 at 01:07 PM · positionmovesystemparticleemitter

ParticleSystem, Maintaining Particle position when emitter moves.

What I'm trying to achieve here is that I got 2 ParticleSystems on a moving vehicle, And when they emit smoke the particles follow the emitter as it moves. I'd like them to stay in same position with the same velocity even if the emitter moves and keeps emitting particles.

This is the code for the emitters:

 var emitter1 : ParticleSystem;
 var emitter2 : ParticleSystem;
 var emitter1pos : GameObject;
 var emitter2pos : GameObject;
 ...
     if(emitter1.isPlaying)
         emitter1.transform.parent = test.transform;
         emitter1.transform.position = emitter1pos.transform.position;
         emitter1.transform.rotation = emitter1pos.transform.rotation;
     if(emitter2.isPlaying)
         emitter2.transform.position = emitter2pos.transform.position;
         emitter2.transform.rotation = emitter2pos.transform.rotation;
 ...
     emitter1.particleSystem.Play();
     emitter2.particleSystem.Play();    


The test object was just to try to get the particles parent to be in a empty GameObject to keep them in place, But it didn't work.

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
23
Best Answer

Answer by andeeeee · Aug 29, 2012 at 02:02 PM

If you change the Simulation Space value from Local to World in the inspector, the particles will not follow the emitter.

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 multinfs · Aug 29, 2012 at 06:13 PM 0
Share

Thanks, :)

avatar image harrismak4 · Jul 19, 2016 at 06:09 AM 0
Share

yeah.. it works..

avatar image yoyyoffg · Dec 14, 2017 at 10:21 AM 0
Share

Thanks a lot !

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

11 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

Related Questions

How do I generate - IN CODE - a ParticleSystem for static particles? 1 Answer

Difference between particle system and emitter? 1 Answer

changing pivot's placement 2 Answers

How can I solve my Mesh Particle Emitter problem? 1 Answer

An array for Particle Emitters? 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