Last active
August 15, 2018 02:08
-
-
Save flushpot1125/65f18bcb15ebe1a6d63c2a5dd7fd2def to your computer and use it in GitHub Desktop.
This file contains 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
//左 | |
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