Skip to content

Instantly share code, notes, and snippets.

@flushpot1125

flushpot1125/pool_frame.js

Last active Aug 15, 2018
Embed
What would you like to do?
//左
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