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
3
Question by AamW · Mar 19, 2013 at 04:20 PM · rotationmeshaxisparticle4.1

How do I change the axis of rotation on a mesh particle in Unity 4.1?

I recently upgraded from 3.5 to 4.1. I had a long mesh particle rotating around the Z-Axis in 3.1. When I upgraded to 4.1 it changed to rotate around the Y-Axis. How do I change this? I'm using the Rotation over Lifetime to rotate.

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

4 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Kid Canuck · Apr 03, 2014 at 07:14 PM

I think it can be done in code. There's an undocumented property on a ParticleSystem.Particle called axisOfRotation, which you can set. You'd have to do it per-particle however, so somethign like this:

 ParticleSystem.Particle[] myArray = new ParticleSystem.Particle[256];
 int count = MyParticleSystem.GetParticles(myArray);
 
 for(int i = 0;i < count;i++)
 {
     myArray[i].axisOfRotation = Vector3.Forward;
 }

I hope this helps, I found this post searching for a solution to my own problem (setting particle rotation on more than 1 axis) and thought I'd share what I have so far in case it was helpful.

Comment
Add comment · Show 4 · 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 Carl_Campbell · May 10, 2016 at 03:46 PM 0
Share

@$$anonymous$$id Canuck, is that JS or C# code? I have no idea about coding whatsoever as you might imagine. Has anyone successfully managed to get correct mesh particle facing using a script component?

avatar image CPX_Chris Carl_Campbell · May 10, 2016 at 03:50 PM 0
Share

It's C# code.

avatar image Carl_Campbell CPX_Chris · May 10, 2016 at 03:56 PM 0
Share

Right, so as I mentioned I've no program$$anonymous$$g experience... Would it be merely a question of saving this snippet as a .cs file and adding it as a ScriptComponent?

Show more comments
avatar image
0

Answer by jcolombo · Apr 13, 2013 at 01:10 AM

This is one of the highest viewed questions... I am new to Unity and only have used version 4.1. Correct me if I'm wrong, but the earlier versions looked like they had editable values for all three axises in the "Rotation over Lifetime". I would love to know the answer as well.

Comment
Add comment · Show 2 · 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 Gillespionage · Aug 08, 2013 at 11:46 AM 0
Share

We are on 4.2 now and there is still no answer for this?

It does seem very wonky that there is no option to to change the axis at which you want to rotate a $$anonymous$$esh particle. The only options available are the angle at which you'd like to rotate it over time and the speed at which it moves.

avatar image superme2012 · Nov 01, 2013 at 12:35 PM 0
Share

Just hit this little problem now.. no axis for rotation?

avatar image
0

Answer by gridside · Oct 02, 2014 at 03:03 PM

There is no solution for this in the current version (4.5) of Unity.

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 sterlingr · May 15, 2015 at 04:34 PM

It's been 2 years and still nothing...

I just ran into this problem.

Sigh

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

19 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

Related Questions

different axis for different objects? 1 Answer

Is Particle.axisOfRotation editable in particle system editor? 0 Answers

Shuriken mesh size over lifetime question 0 Answers

Angle between two rotation axis-vectors (illustration inside) 2 Answers

How do I fix rotational axis of an object? 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