Physics Demo – WebGL

admin/ September 29, 2015/ Javascript, WebGL, Work/ 0 comments

Sphere physics demo.

This experiment uses lighting/physics/collision/box,sphere geometries/textured materials/keyboard+mouse interaction & point clouds.

Interaction:

Hovering the mouse over a red ball gives it “mass“. Once a ball has mass it will drop to the floor (the bottom ones will obviously need to be given a mass first, otherwise they will hold the top balls in the air). After giving the balls mass and they drop the keyboard will control the ball the mouse clicks on. The “Up” arrow moves the selected sphere backwards. The “Down” arrow moves the selected sphere forwards. The “Left” arrow moves the selected sphere left. The “Right” arrow moves the selected sphere right.

demo

Leave a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
*
*