water imlementation example

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
sergio76
Posts: 2
Joined: Thu Apr 19, 2012 12:07 pm

water imlementation example

Post by sergio76 »

Hello excuse me so much for my english

I created an XNA 4.0 simulation environment for an submarine vehicle.
I created it like a big lake with terrain, skydome, water and the submarine model(created with blender).
Now I'm trying to use Bepu Physics to simulate the movement of my vehicle in water.
Have you same examples or demo to read that are similar to my system?
Or where can I find some instruction on the use of class

FluidVolume

I have problem whit the constructor parameters:

-IQueryAccelerator queryAccelerator

-IThreadManager threadManager

My bepu version is v1.1.0

thank you
sergio76
Posts: 2
Joined: Thu Apr 19, 2012 12:07 pm

Re: water imlementation example

Post by sergio76 »

[img]

[/img]

Here an image of my system .

I would like only to move my vehicle as if it were in water, with no other visual effects.

thank you
Attachments
Immagine111.jpg
Immagine111.jpg (31.87 KiB) Viewed 4977 times
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: water imlementation example

Post by Norbo »

The Space's thread manager is the Space.ThreadManager, and the query accelerator is the Space.BroadPhase.QueryAccelerator. Check out the BuoyancyDemo in the BEPUphysicsDemos for an example of its usage.

The FluidVolume can do buoyancy forces, damping, and unidirectional flow optionally. Because the ship is a submarine and spends most of the time underwater, you may find that the FluidVolume is a bit more than needed. Buoyancy can be approximated for submerged objects very easily using the volume and density. Forces or velocity changes can be directly applied to the entity by using Linear/AngularMomentum and Linear/AngularVelocity.
Post Reply