Skip to content

Instantly share code, notes, and snippets.

@flushpot1125
Last active August 15, 2018 02:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flushpot1125/65f18bcb15ebe1a6d63c2a5dd7fd2def to your computer and use it in GitHub Desktop.
Save flushpot1125/65f18bcb15ebe1a6d63c2a5dd7fd2def to your computer and use it in GitHub Desktop.
//左
var box1 = BABYLON.MeshBuilder.CreateBox("box1",{height:500, width: 50, depth: 50},scene);
box1.position = new BABYLON.Vector3(-230,0,-40);
box1.rotation.z = Math.PI/2;
box1.rotation.x = Math.PI/2;
box1.rotation.y = Math.PI/2;
//右
var box2 = BABYLON.MeshBuilder.CreateBox("box2",{height: 500, width: 50, depth: 50},scene);
box2.position = new BABYLON.Vector3(230,0,-40);
box2.rotation.z = Math.PI/2;
box2.rotation.x = Math.PI/2;
box2.rotation.y = Math.PI/2;
//真ん中
var box3 = BABYLON.MeshBuilder.CreateBox("box3",{height: 50, width: 510, depth: 50},scene);
box3.position = new BABYLON.Vector3(0,0,210);
box3.rotation.z = Math.PI/2;
box3.rotation.x = Math.PI/2;
box3.rotation.y = Math.PI/2;
//水面部分
var waterMesh = BABYLON.Mesh.CreateGround("waterMesh", 512, 512, 32, scene, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment