x


Water Blob Bullet

Hi I'm having some difficulty with the effect I want to achieve.

I want the blob to come out of the gun now I can do that easily but I want the blob to be a softbody and RigidBody so it can collide with the ground and then smash releasing a particle effect (Splash) and then a texture spreads on the floor. How can I do this?

more ▼

asked Sep 06 '11 at 11:33 PM

DarkKobra2020 gravatar image

DarkKobra2020
48 6 6 8

Metaballs could be worth looking into.

Sep 07 '11 at 08:10 PM Muzz5
(comments are locked)
10|3000 characters needed characters left

3 answers: sort oldest

Sorry, you can't write Portal2 by using soft bodies :-). You will not get adequate performance - unless your "bullet" is moving quite slowly. Just use an oblate sphere and make the collider smaller than the visual sphere so it seems to deform before it splatters. Or make it actually deform with a bit of scaling trickery.

Lots of Game Physics is just trickery like this.

more ▼

answered Sep 06 '11 at 11:43 PM

Waz gravatar image

Waz
6.4k 22 33 70

(comments are locked)
10|3000 characters needed characters left

Thank you so much very clever with portal reference yeah I'm gonna get a lot of that actually its an experiment to see how far I can push the physics but thanks anyway I shall try it and no I'm not creating Portal 2.

more ▼

answered Sep 06 '11 at 11:46 PM

DarkKobra2020 gravatar image

DarkKobra2020
48 6 6 8

Never hurts to try.

(I didn't really think you were rewriting Portal2)

You probably meant this as a comment to my answer, not a new answer, BTW.

Sep 07 '11 at 12:17 AM Waz
(comments are locked)
10|3000 characters needed characters left

I just though of this idea so I'm not sure how well it would work, but... Create a sphere(ish) mesh, with its origin at the center and create bones at uniform intervals on the outside skin of the mesh so that vertices are weighted to nearby bones (more than one bone per vertex) by there radial distance. Then bring it into Unity and apply a sphere collider and rigidbody to all the outside bones. Connect them to the sphere mesh with spring colliders, make a script for all the bones to always have the same constant local rotation that they had when the game started. Then make all that a prefab that gets shot.

As far as an easy and elegant way? I don't think there is one for colliding softbodies in Unity.

more ▼

answered Sep 07 '11 at 07:58 PM

Reavenk gravatar image

Reavenk
81 1 1 3

(comments are locked)
10|3000 characters needed characters left
Your answer
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:

x1780
x307
x298
x28
x16

asked: Sep 06 '11 at 11:33 PM

Seen: 1001 times

Last Updated: Sep 07 '11 at 08:10 PM