Created
March 6, 2013 12:44
-
-
Save oal/5099062 to your computer and use it in GitHub Desktop.
A short example showing how to subclass THREE.Mesh in CoffeeScript.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Entity extends THREE.Mesh | |
constructor: -> | |
geometry = new THREE.CubeGeometry(200,200,200) | |
material = new THREE.MeshBasicMaterial | |
color: 0xffffff | |
THREE.Mesh.call @, geometry, material |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment