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 B10COR3 · Jan 22, 2013 at 10:28 PM · collisionrigidbodycolliderparticlesforce

Particle collision with a rigidbody. Adding explosive force?

Hello. I'm having some trouble adding an explosive force (as in pushing rigidbodies) to a particle system.

The main idea


The particle effect is part of an RPG type ability timed with the animation.

A ring type particle system (player centered) is emitted in a certain radius(achieved);

To give a nice dynamic effect, I had the idea that the particle system (in-game ability graphics) should be more than just graphics and interact with the world around it, playing with collisions and forces.

An example would be: A box is placed in the center of a small area, area that is in the radius of the ability, the ability is activated and the box , and or other dynamic objects in the blast radius, are pushed.

The Logical Procedure


  • Making a Script that include all particles (only) in that particle
    system in an array.

  • Attaching a collider to each particle in the array.

  • Detecting collision between the particles and rigidbodies and applying the specified force to the objects, like an explosion effect that pushes everything around in its blast radius.

Now figuring this out was the easy part (even if i'm missing some logical steps, if so , my mistake sorry ), but the thing is: isn't this some how simplified in Unity ?

I mean i read about the Rigidbody.AddExplosionForce but I'm still missing something, if you have done something similar and can point me into the right direction please do :)

Thanks in advance.

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 jmgek · Jan 22, 2013 at 10:31 PM

Check out detonator its free, and comes with a ton of explosions with the physics built in. If that wont work then let me know.

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 B10COR3 · Jan 22, 2013 at 11:55 PM 0
Share

PERFECT, thanks! Just need to tweak a thing or two but I tested it right out of the box by attaching one of the scripts to the particle system and boom, instant explosion.

avatar image jmgek · Jan 23, 2013 at 12:39 AM 0
Share

Yeah, Also to do area damage you can also input that there.

avatar image B10COR3 · Jan 23, 2013 at 01:11 AM 0
Share

Really? Affecting multiple npc mobs in radius? I still didn't find that module, which script of the package? thanks again.

avatar image jmgek · Jan 23, 2013 at 02:13 AM 0
Share

You have to code it yourself on the colliders.

avatar image B10COR3 · Jan 23, 2013 at 02:44 AM 0
Share

Ah sure , thanks a lot for everything!

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

10 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

Related Questions

Tossing an object with the correct force at any distance from another so that it collides with the other 1 Answer

Collider question 0 Answers

Reuse a collision 0 Answers

Advice for Intersecting Colliders 0 Answers

Character Controller meets Rigidbody 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