 |
|
|
|
Coming Soon: Fluid Container Behavior!
|
|
|
 |
|
Location: Blogs Andy's Blog |
|
| Posted by: host |
8/20/2009 2:22 PM |
Have you figured out that Behaviors are the greatest thing since sliced bread? You WILL... only a matter of time :) I'm still having fun in my spare time adding to the Physics Helper Behaviors, and coming soon to the library is a Fluid Container Behavior, which can be used to simulate water and waves.
I threw this water/ragdoll test together using the new behavior (oh, and no code!):
MUCH of the credit for the Fluid Container goes to Jeff Weber - besides being the creator of the Farseer Physics Engine, he also published an inspiring Water Physics Demo. And he was nice enough to publish the source code as well! So it took about 60 minutes to wrap Jeff's sample code into a Behavior. THANK YOU JEFF!
|
|
| Permalink |
Trackback |
Comments (7)
Add Comment
|
Coming Soon: Fluid Container Behavior! - Andy Beaulieu
|
By TrackBack on
8/21/2009 7:33 PM
|
Thank you for submitting this cool story - Trackback from DotNetShoutout # DotNetShoutout
|
|
|
Re: Coming Soon: Fluid Container Behavior!
|
By Anonymous on
8/22/2009 11:39 AM
|
Excellent sample, Do you have any plans to add soft body physics elements eg: http://chriscavanagh.wordpress.com/2008/06/24/silverlight-soft-body-physics/ I love the samples being made but i find the api cumbersome. Id love to have this as a behaviour instead. Samples: http://drakon.xxl-web.pl/silverlight/test1.html (use arrows and space bar) http://drakon.xxl-web.pl/silverlight/test2.html
|
|
|
Re: Coming Soon: Fluid Container Behavior!
|
By Anonymous on
8/22/2009 4:51 PM
|
|
I jusl love Silverlight physics and behaviors are indeed the greatest thing since sliced bread! I am a believer! Maybe I should make a U-boat version of my MINI Clubman demo (http://www.johnbruin.net/index.php/2009/08/22/silverlight-mini-clubman-physics)
|
|
|
Re: Coming Soon: Fluid Container Behavior!
|
By Anonymous on
8/22/2009 9:45 PM
|
Soft Body physics aren't directly supported by the Farseer engine yet, but can sort of be simulated using Joints. It would be cool to try and create a nice Behavior wrapper that would do the simulation for you, maybe I'll give it a go.
John - I like the mini demo :) And its even front wheel drive of course, heh.
-Andy
|
|
|
Re: Coming Soon: Fluid Container Behavior!
|
By Anonymous on
8/23/2009 6:22 AM
|
BTW: I created animated path contentcontrol to fake a softgeom rectangle object but i cant see how to add physics to it. Would that be the right direction? Demo: http://silverlight.services.live.com/invoke/6655/Wobbly/iframe.html
Code: http://cid-289eaf995528b9fd.skydrive.live.com/self.aspx/Public/wobbly.zip
|
|
|
Re: Coming Soon: Fluid Container Behavior!
|
By Anonymous on
8/23/2009 7:01 AM
|
|
When you say soft body can be faked by joints, do mean like FastLSM http://drakon.xxl-web.pl/?p=93
|
|
|
Re: Coming Soon: Fluid Container Behavior!
|
By Anonymous on
8/23/2009 7:33 AM
|
I haven't tried this yet, but I _think_ you could simulate a soft body in Farseer by having joints strategically placed throughout the outline of your geometry, with Angle Springs enabled on each joint. My thinking was to add a Behavior to do this for you automatically - you would need to specify the frequency of the lines/joints and the firmness of the joints, and the Behavior would chop up the geometry and add the angle springs.
-Andy
|
|
|
|
 |
|
 |
|
|