SpriteHand
Module Border
  Coming Soon: Fluid Container Behavior!
Module Border
Location: BlogsAndy'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


Title:
Comment:
Add Comment   Cancel 
Module Border Module Border
Module Border
  Subscribe
Module Border
RSS   Twitter
Module Border Module Border
Module Border
  Diversions
Module Border

TALKING RAGDOLL
This Windows Phone 7 App was created using Silverlight, the  Physics Helper Library,  and the Farseer Physics Engine. It gets interesting when you import your friends photos and have your way with them!

MORE INFO



DROPPYPOP
This Windows Phone 7 game was created using Silverlight, the  Physics Helper Library,  and the Farseer Physics Engine.
DEMO

MORE INFO



BOSS LAUNCH
This physics game won first place in the Server Quest Contest. Created using Silverlight 2, the Physics Helper Library,  and the Farseer Physics Engine.
PLAY IT

MORE INFO



DESTROY ALL INVADERS
A scrolling shooter game where the objective is to destroy the invading UFO's flying over a neighborhood of your choosing. Imagery provided by Microsoft Virtual Earth. Created using Silverlight 2.
PLAY IT

INFO AND CODE



PHYSICS HELPER DEMOS
These demos were created for the Physics Helper Library, which makes it easy to create physics games and simulations using Expression Blend, Silverlight, and the Farseer Physics Engine.
PLAY IT

INFO AND CODE



HOOK SHOT
This little basketball game took first place in the TeamZoneSports Silverlight Contest. Created using Silverlight 2 and the Farseer Physics engine.
PLAY IT

MORE INFO



SORT THE FOOBARS
A game where you need to sort the good foobars from the bad ones. Created using Silverlight 2 and the Farseer Physics engine.
PLAY IT

MORE INFO



POLYGON PHYSICS DEMO
A demo showing polygon physics where the user draws physics objects with the mouse. Created using Silverlight 2 and the Farseer Physics engine.
PLAY IT

MORE INFO



SILVERLIGHT ROCKS!
Destroy the asteroids before they destroy your ship! Created using Silverlight 2.
PLAY IT

INFO AND CODE



FISH GAME
A simple game of harpoon-the-fish. Written using the AJAX Sprite Toolkit.
PLAY IT

INFO AND CODE

Module Border Module Border
Module Border
  Search_Blog
Module Border
Module Border Module Border
Module Border
  Blog_Archive
Module Border
Module Border Module Border
Copyright (c) 2013 andy.beaulieu.com - Login