benrayfield / DomCannon

Imagine 3d game worlds with webpage parts on polygons. Early experiment in making a 3d webpage. Puts a html div on the top polygon of a CannonJS RigidVehicle, and 2 input type=range / sliders in it, one for gas and one for steering. Also uses browser gamepad API so left joystick does gas and steering.

Home Page:https://memecombinator.io/experiments/domcannon001/DomCannonDemo001.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DomCannon

Imagine 3d worlds with webpage parts in them. This tiny javascript/html software lets you drive a car in 3d in browser but has potential to do alot more once its generalized to N divs on N rectangle polygons. Inside those divs could be javascript code editors to add more CannonJS game objects, like stacking blocks to drive into them to knock them down, or load videos or websites in iframes on polygons. Drag and drop. etc. (TODO).

Early experiment in making a 3d webpage. Puts a html div on the top polygon of a CannonJS RigidVehicle, and 2 input type=range / sliders in it, one for gas and one for steering. Also uses browser gamepad API so left joystick does gas and steering.

As usual in cannonjs demos, hold left mouse button to rotate view, and hold right mouse button to move view.

About

Imagine 3d game worlds with webpage parts on polygons. Early experiment in making a 3d webpage. Puts a html div on the top polygon of a CannonJS RigidVehicle, and 2 input type=range / sliders in it, one for gas and one for steering. Also uses browser gamepad API so left joystick does gas and steering.

https://memecombinator.io/experiments/domcannon001/DomCannonDemo001.html

License:Other


Languages

Language:JavaScript 96.6%Language:HTML 3.4%Language:CSS 0.0%