diff --git a/app/src/main/java/org/ntlab/radishforandroidstudio/cactusClient/views/PlayerFragment.java b/app/src/main/java/org/ntlab/radishforandroidstudio/cactusClient/views/PlayerFragment.java index f619693..c11b8b7 100644 --- a/app/src/main/java/org/ntlab/radishforandroidstudio/cactusClient/views/PlayerFragment.java +++ b/app/src/main/java/org/ntlab/radishforandroidstudio/cactusClient/views/PlayerFragment.java @@ -130,21 +130,23 @@ physicalSystem = new PhysicalSystem(); Box b1 = new Box(1.0f, 1.0f, 1.0f, ap3); Object3D obj1 = new Object3D("box", b1); -// obj1.apply(new Position3D(0.0, -118.0, 250.0), false); - obj1.apply(new Position3D(0.0, -80.0, 250.0), false); + //設置のみの時のオブジェクトの初期値 + obj1.apply(new Position3D(0.0, -118.0, 250.0), false); + //地面との当たり判定の時のオブジェクトの初期値 +// obj1.apply(new Position3D(0.0, -80.0, 250.0), false); diceObj = new Solid3D(obj1); diceObj.scale(1.0, 1.0, 1.0); diceObj.apply(new AngularVelocity3D(-0.4, 0.0, -0.6), false); - OvergroundActor actor = new OvergroundActor(obj1, null); +// OvergroundActor actor = new OvergroundActor(obj1, null); //地面との当たり判定するとき - universe.place(actor); +// universe.place(actor); //地面との当たり判定しないとき -// universe.place(diceObj); -// physicalSystem.add(diceObj); -// initTrans = new Transform3D(); -// obj1.rot.getTransform(initTrans); + universe.place(diceObj); + physicalSystem.add(diceObj); + initTrans = new Transform3D(); + obj1.rot.getTransform(initTrans); //カメラの設定(視点) camera.setViewPoint(pocha.getPosition().add(0.0, 1.5, 0.0));