The cube feature is a simple cube mesh that you can texture or color.
The URL of the image that will be used as texture.
(Optional)
; Make the cube a collidable object.
(Optional)
;
Allows you to change the color of your cube.
String
; Links must be https://
and must finish with an image extension.
feature.get('url')
// returns: "https://..."
feature.set({'url':"https://www.myurl.com/file.png"})
""
String
; An Hex color string such as #000
.
feature.get('color')
// returns: "#ffffff"...
feature.set({'color':"#4287f5"})
"#000000"
Boolean
feature.get('collidable')
// returns: false
feature.set({'collidable': true})
false
String
;
feature.get('type')
/* or */
feature.type
// returns: 'cube'