Jellyfish custom physics demo

Hi All,

Ive been lurking around for some time, trying to get a particular result from the built in Unity Physics stuff. However, after many frustrating attempts I realised that the joints system in physx just isnt up to the job, so I wrote my own joints system. Heres a little Demo http://www.nullpointer.co.uk/WebPlayer13/WebPlayer.html

Wow this looks really neat, great job. Might I ask why you wrote your own joint system? I’m not a pro with PhysX yet, but would like to hear why you rolled your own solution.

Cheers!

Hi, yeah basically, Physx is really great for things bashing into each other and bousing about, and its also great for short shained hinges/motors etc. However I found that it gets really unstable after you link together more than about 4 or so joints. You get crazy behaviour and your simulations can go a bit beserk. Just look at all the posts where people are making chain/rope rigs. Its ok for a peice of string or a rope to totally tangle up, but if its a real jointed object with restricted angles then it looks totally wrong. I found the limit settings on Physx joints to rarely work under this sort of situation and pretty unrelieable when under the effect of chains of forces from several directions.
All my system does is make a basic hinged (any angle) object and then ensures it never gets too far from its assigned position relative to its parent. I use the actual vector distance between the current angle and the target angle as a multipleir for the adjustments. This means the further from the target it is, the quicker it moves back, the closer it is the smoother the movement. Its certainly not a multifunctional solution (like physx) but for what i want it works ok atm.

Thats pretty damn hypnotic :slight_smile: I like! Totally need to add some sweet underwater bubbles in the background :slight_smile: maybe some seaweed - oh and a little castle :smile: hehe

What a great result! Can’t wait to see this plugged into an application.

Thats freakin awesome, I love the way it flows, the exact way a jelly fish does. Just change the cubes to a proper mesh and a nice glowing texture and your all set bud!