Causeway->Demos->VML graphics->Bouncing Ball

Bouncing Ball


Home
  About us
  Contact info
  Vector graphics
  SVG Fills & Filters
Products
  Price list
  CSharp translator
  Dyalog
  APL2000
Support
  CUSP
  CausewayPro
  RainPro
  Newleaf
  Helpstuf
  Leafhtm
Tutorials
Demos
  Climate Charts
  VML graphics
    Rainfall at Gilling
    Population Pyramid
    Checkweigher
    Budget vs Actual
    Two Piecharts
    Several Barcharts
    Box & Whisker
    Wise Eels Bridge
    Response Surface
    Tabular Data
    Scripted VML
    Bouncing Ball
    Climate charts
  SVG examples
Free Stuff
  CSS Editor
Publications
  Seminars
  Articles
Causeway Graphical Systems

The Bouncing Ball

This bouncing ball is confined to a small world with cushioned impacts and air resistance. It is a simple example of the kind of animations you can generate by changing properties of VML objects dynamically.

To move it, drag it around and release (within the constrained rectangle). The ball will carry on at the speed of the mouse.

To change the conditions, use these fields:

Energy conserved at collisions:
Gravity (m/s2):
Air resistance (m/s at 1 m/s):

You might like to experiment with negative gravity, and/or set the energy conserved on impact to be a number above 1.

JavaScript Gravity Engine © Richard Smith 2000


Website maintained by adrian@causeway.co.uk
Telephone: +44 (0) 1439 788413