Skip to content

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.

License

Notifications You must be signed in to change notification settings

benrayfield/DomCannon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published