Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - kiran.hereu

Pages: [1]
1
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.

2
Hi,

I did rotate the plane, first I am trying to connect two planes like a wall and floor. below is my code

Object3D floor = Primitives.getPlane(9, 10f);
Object3D wall1 = Primitives.getPlane(9, 10f);
floor.rotateX((float) Math.PI / 2f);
wall1.translate(-40f, 0, 0);
world.addObject(floor);
world.addObject(wall1);
world.buildAllObjects();

it is bisecting the floor, instead of adding at the end of the floor. Do I need to rotate wall as well? If yes how much I need to rotate it and on which axis?

Thank You.


3
Hi AGP,

Thanks for the reply.

I tried using the code, but all I could see is a parallel vertical  planes facing each other. Am I missing something?

4
Support / Please help me in creating a room layout in JPCT 3D Java engine
« on: September 05, 2014, 09:56:49 am »
Hi All,

I am new to coding and I do know few basics of java. Now I am trying to create a room layout with floor and walls, and searching for a sample code which might give me some understanding and did not find one.

If anyone has worked on this type of project, please help me with the sample code so that I will from there.

Thanks in advance.


Pages: [1]