Hi,
I tried floor.translate(0,45,0) still the wall bisecting the floor. I tried different combinations for positioning the wall, I could say I was 40% succeeding it. Is it a kind of hit and trail to position an object?
Now I am using the collision demo example given in the wiki and trying to place walls across the plane given there. I just added the single plane as wall and it was not at the edge of the plane. The code is below. I tried several combinations to move it to the edge. There is no issue with floor now, still do I need to translate the floor? Attached the screenshot for your reference.
plane = Primitives.getPlane(20, 10);
plane.rotateX((float) Math.PI / 2f);
Object3D wall = Primitives.getPlane(10, 20);
wall.rotateZ((float) Math.PI / 2f);
wall.translate(40,-20,70);
Thank You.
I tried floor.translate(0,45,0) still the wall bisecting the floor. I tried different combinations for positioning the wall, I could say I was 40% succeeding it. Is it a kind of hit and trail to position an object?
Now I am using the collision demo example given in the wiki and trying to place walls across the plane given there. I just added the single plane as wall and it was not at the edge of the plane. The code is below. I tried several combinations to move it to the edge. There is no issue with floor now, still do I need to translate the floor? Attached the screenshot for your reference.
plane = Primitives.getPlane(20, 10);
plane.rotateX((float) Math.PI / 2f);
Object3D wall = Primitives.getPlane(10, 20);
wall.rotateZ((float) Math.PI / 2f);
wall.translate(40,-20,70);
Thank You.