Skip to content

Instantly share code, notes, and snippets.

@ybigus
Created February 11, 2014 21:48
Show Gist options
  • Save ybigus/8944878 to your computer and use it in GitHub Desktop.
Save ybigus/8944878 to your computer and use it in GitHub Desktop.
function addHero(scene) {
var boardMaterial = Physijs.createMaterial(new THREE.MeshLambertMaterial({ color: 0xffffff }), 0, 0);
heroWrap = new Physijs.SphereMesh(
new THREE.SphereGeometry(10,32,32),
boardMaterial,
1000
);
heroWrap.visible=false;
heroWrap.position.set(50, 10, 50);
scene.add(heroWrap);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment