Skip to content

jeromeetienne/threex.crates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

threex.crates

threex.crates is a threex game extension for three.js. It provides crates models, 3 of them to be accurate. Yeah you heard me, this is only boxes of wood. Why doing an extension for that? Well, because crates are like a myth in 3d graphics, we put them everywhere. So if you need crates to easily put in your game, you know where to find them now :)

Show Don't Tell

A Screenshot

screenshot

How To Install It

You can install it via script tag

<script src='threex.crates.js'></script>

Or you can install with bower, as you wish.

bower install threex.crates

How To Use It

To create a crate0, just do

var mesh = THREEx.Crates.createCrate0()
scene.add(mesh)

To create a crate1, just do

var mesh = THREEx.Crates.createCrate1()
scene.add(mesh)

To create a crate2, just do

var mesh = THREEx.Crates.createCrate2()
scene.add(mesh)