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 1a149b5..735d99a 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,14 +130,20 @@ 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, -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); - universe.place(diceObj); - physicalSystem.add(diceObj); - initTrans = new Transform3D(); - obj1.rot.getTransform(initTrans); + OvergroundActor actor = new OvergroundActor(obj1, null); + //地面との当たり判定するとき + universe.place(actor); + //地面との当たり判定しないとき +// universe.place(diceObj); +// physicalSystem.add(diceObj); +// initTrans = new Transform3D(); +// obj1.rot.getTransform(initTrans); //カメラの設定(視点) camera.setViewPoint(pocha.getPosition().add(0.0, 1.5, 0.0));