x


Shuriken Explosion Example - Collision

Hi,

I was playing around with the explosion example that was in the Shuriken Examples project, and I was trying to prevent the explosion (fireball etc) from going through an object (i.e a wall) so it doesn't appear through the other side to the player, however I just can't figure it out.

Here are the examples.

http://beta.unity3d.com/3.5-preview/ShurikenExamples.zip

I also played around with the Detonator framework, and couldn't work out how to do it.

http://unity3d.com/support/resources/unity-extensions/explosion-framework

Any advice?

Thanks

more ▼

asked May 01 '12 at 01:13 PM

PigFace gravatar image

PigFace
3 2 2 2

Add a collider to the player, if there isnt one, then OnCollisionEnter (hit : Collision) then all you have to do is delete or 'Explode' the fireball.

May 01 '12 at 04:06 PM maroonrs2
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

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

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2490
x638
x162
x161
x53

asked: May 01 '12 at 01:13 PM

Seen: 2329 times

Last Updated: May 01 '12 at 04:06 PM