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
0
Question by Yoerick · Feb 23, 2012 at 02:01 PM · particle systemworldspaceshuriken

Shuriken particle system useWorldSpace?

Hi, I'm working on a game where you can cast a spell that makes a trail of poison on the ground. The poison trail consists of shuriken particles systems from Unity 3.5. There are some horizontal bilboards in those systems and the problem is, the systems need to be able to travel uphill on a terrain. So the angle of the particles should change according to the hill angle, to keep them facing away from the terrain and preventing them to be just horizontal and go half through the terrain. When it comes to coding I have everything to make this work, I use raycasting to get the exact angle of the hill and the prefab rotates exactly the way I want it to.

Problem: when I rotate the prefab, it doesn't do much because it contains horizontal bilboards, that of course don't rotate because they are forced to be horizontal. Now I found out, by using a plane mesh and the rendermode Mesh for the particle system, I can rotate them as I want, but only in the editor. Once the system is emitting in the game, for some reason rotating the prefab doesn't effect the rotation of the planes anymore. UNLESS I set it to be local space. But then I have the problem the particles travel as 1 pack and don't stick to the ground, because you need them to be worldspace for this..

I think the solution lies in alternating between localSpace and worldSpace but, unlike normal particle emitters, the ParticleSystem class doesn't have a variable to set the simulation space? Does anyone know how to change the simulation space of a shuriken particle system in code?

Thanks :)

Comment
Add comment · Show 2
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 Yoerick · Feb 27, 2012 at 01:16 PM 0
Share

Does anyone know?

avatar image Yoerick · Mar 14, 2012 at 03:57 PM 0
Share

I solved my specific problem with a workaround but I'd still like to know if it's possible at all to switch a shuriken particle system's simulation space between world and local space? (in code)

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by mighty_marcos · Mar 01, 2012 at 02:32 AM

Lock to Transform checkbox.

on = local space off = world space

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 mighty_marcos · Mar 01, 2012 at 08:58 PM 0
Share

Oops, missed the last line in your question's never $$anonymous$$d

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

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Change colour of particles with C# 1 Answer

How can I scale Shuriken particle system? 2 Answers

Particle system (Shuriken) 4 Answers

how can I get particle.position out of shuriken system? 2 Answers

How to import particle emitter mesh without inner edges? 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