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
3
Question by MrProfessorTroll · Sep 14, 2013 at 12:31 AM · textureparticlesrotategunshoot

Rotate the textures in the particle system to direction of the particle system?

Well the problem is that I have created a texture in Photoshop that I use for my particle system. I use this particle system as my bullets. The thing is, the guns in my game rotate to look at the mouse. I need my textures to face the right way depending on the rotation. In the picture below, you can see my bullet texture is not facing the way my gun is. Is there some sorta solution to this? I have been working on this for 30 minutes now and no results :(

alt text

examplepicture.png (43.9 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
16
Best Answer

Answer by Owen-Reynolds · Sep 14, 2013 at 12:54 AM

In renderMode, at the bottom, set to "Stretched Billboard."

As you'd think, this stretches the particles, in the direction of motion. But it also rotates them to face the direction of movement.

You may have to set length scale to 1 (which means no stretch, but it will still aim.) If it aims the backside of the bullet, can try to fix by changing the Material Tiling x or y to -1. Think the only way to fix a bad 90 degree spin is to rotate the original texture.

Also works in the old "Legacy" particle system.

Comment
Add comment · Show 5 · 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 MrProfessorTroll · Sep 14, 2013 at 01:04 AM 0
Share

Thanks this worked perfectly :)

avatar image grahamoflegend · Oct 19, 2014 at 08:56 AM 0
Share
  • to this working. Thank you very much!

avatar image krisventure · Oct 21, 2016 at 10:20 PM 0
Share

This solved something I've been struggling with for ages. $$anonymous$$y particle's 'rotation over lifetime' never looked correct from the opposite side: If you rotate a vertical bar 45 degree to its right, in real 3D you'll see its rotation 45 degree leftwards when looking back from behind it. However because the billboards' rotation follow the camera, with simple vertical billboards you'll see them rotated rightwards no matter from where you're looking at them! However, using streched billboards and ins$$anonymous$$d of setting 'rotation over lifetime', giving them 'velocity over lifetime' towards the rotations you want it to face, you can get those particles, due to them facing the velocity, to give a 3D rotation that looks consistent from all angles! Amazing how sometimes Unity hides superpowers behind names where you'd never expect them. 'stretched billboards' right? - when it's in fact a 'genius billboard' overco$$anonymous$$g the trickiest downside of billboards always facing the camera. Who'd have thought :)

avatar image Shifty-Geezer · Jun 05, 2017 at 08:12 PM 0
Share

It's frustrating limited though. You can't add rotational variety and scaling is from the base of the sprite, so shrinking a particle over time makes it appear to travel backwards. It's rather stupid to not have an alignment option in the particles and a pretty shocking oversight over the years Shuriken has been available.

avatar image SSStreetFighter · Jan 12, 2021 at 06:44 AM 0
Share

$$anonymous$$ine just stopped displaying the sprite when I switched to stretched billboard

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

rotate a texture inside a cube 1 Answer

Rotating Textures 0 Answers

Making a shotgun? 1 Answer

Making a gun shoot WELL? 1 Answer

Packing particles textures into one map 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