## Liquid Simulation test for Simphy

We tried porting liquidfun (just a quick port with no optimizations) and the results are quite encouraging.
Have a look at these example videos

We are getting 60 fps with approx 5000 particles on 4 year old core i3 laptop, which I think is quite descent.

But porting liquid fun required few changes in Transform, World, Vector2 and raycasting callbacks(other classes remain intact). Obviously it is not yet ready to be released with this version of simphy, it will need huge framework changes in simphy, so hoping it to be released in next major release.

## Serpent Demo in Simphy 0.9 (Beta version)

Demonstrates the physics behind snake’s motion. Snake is created by joining many rectangles with revolute and distance joint.
Look at the motion of serpent closely, the joints are behaving like vertebrates.

## Simphy Custom forces demo

You can simulate almost any 2D motion of objects by applying custom force to body. Force may be the function of speed, position, mass of object.

## SimPhy Fields Demo

SimPhy supports setting up of various fields other than gravity.

• ###### Gravity:

The gravitational force on an object is calculated as
`Force = mass x gravity x gravityFactor`

• ###### Electrostatic field:

Electrostatic field (in N/C)added to the world, apply force on object if and only if it has non zero charge and it is inside bounds of field.

• ###### Magnetic field:

The magnetic lorentz force on an object is calculated asForce = charge x speed x magnetic field  and is perpendicular to the velocity

• ###### Buoyancy and drag:

Buoyancy can be added to a region representing hypothetical liquid in that region. The density and viscosity of liquid can be changed while adding/editing field.

## Simphy Joints Demo

Simphy has a number of ‘joints’ that can be used to connect two bodies together. These joints can be used to simulate interaction between objects to form hinges, pistons, ropes, wheels, pulleys, vehicles, chains, etc. Learning to use joints effectively helps to create a more engaging and interesting scene.

## Body Types in Simphy Demo

Demo for various type of bodies that can be added to Simphy. You can also create complex bodies by adding multiple fixtures or using constructive area geometry.

## Mouse Gesture Demo

Demonstration of physics simulator Simphy’s new feature called universal tool. Now we can control, edit and create objects and joints simply using mouse gestures. It dynamically recognizes shapes and patterns and adds to simulator.