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
1
Question by DanMarionette · Jan 09, 2011 at 08:33 PM · particlesspaceinfinitetrail

Creating infinite particles with trails.

Hi,

I am creating a 2d space game and would like to create some particles(space dust) in the scene to give the player a sense of movement. The player can move in all directions on a 2d plane so the particles would also need to move in all directions. I have seen this effect done very nicely in an iPhone game called Space Miner Blast

You can see in the video the small white trails that get longer and shorter based on the players velocity.

That's the effect I'm trying to achieve.

Any help would be great. Thanks.

Dan

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

Answer by Tetrad · Jan 09, 2011 at 09:20 PM

I haven't tried it or anything, but something that would probably make things easier is to consider it conceptually as a particle emitter that's on the player that spawns particles around the player that are the opposite velocity that the player is moving instead of filling the world with particles or anything like that.

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 DanMarionette · Jan 10, 2011 at 11:49 PM 0
Share

Thanks for your quick response. This is the sort of thing I was thinking about. Well I thought about attaching it to the camera but the player would be better so it can directly get it's rotation. I imagined the emitter being twice the size of the screen size which in my head works well if you ship is constantly changing direction but what I can't quite see is how to solve the issue if the player just picks one direction and travels for a great distance. Even though the emitter moves with the player the particles have to look like they are co$$anonymous$$g from off screen from which ever (cont..)

avatar image DanMarionette · Jan 10, 2011 at 11:53 PM 0
Share

direction the ship is moving. This would mean spawning them from off screen not on screen. I don't want particles to just appear in front of the player. The only way I can imagine it is if the emitter is a child of the ship, position a small distance in front of the ship, off screen. There would need to be some initial particles that have already spawned to fill the screen as well as the ability to spawn more off screen. Does this make sense?

avatar image Tetrad · Jan 11, 2011 at 04:14 PM 0
Share

Sounds reasonable.

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

No one has followed this question yet.

Related Questions

Is there a way to draw particles on a raycast? 2 Answers

Infinite Space in Cube 2 Answers

Smoke Trails in lines 1 Answer

How to Create Shields 2 Answers

Atmospheric re-entry effect 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