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.


Topics - jkndmiththinda

Pages: [1]
1
Support / collision detection
« on: March 20, 2012, 07:17:10 pm »
Hi
I am trying to do a collision detection using checkForCollisionEllipsoid. I managed to get a corrected vector upon detecting a collision through this method.

My question is, is it possible for me to get the correction in only X, Y directions excluding the Z axis? i.e. The corrected vector should not move in Z axis, I want all objects to be in the same plane.

Thanks for sharing this great engine again!

2
Hi,
I am trying to determine how much space an object takes in 2D using the following method. But it doesn't seem to return the correct value.

float[] BoundingBox = 3DOBJECT.getMesh().getBoundingBox();
SimpleVector SV3D, SV2D;

SV3D.set(BoundingBox[1], BoundingBox[3], BoundingBox[5]);

SV3D.matMul(3DOBJECT.getWorldTransformation());

SV2D = Interact2D.project3D2D(WORLDOBJECT.getCamera(), FRAMEBUFFER, SV3D).normalize();

I expected SV2D.x to have the correct 2D width as displayed on screen, but it doesn't seem to give that.

Thanks for sharing this great engine!

3
Support / Placing objects in the world
« on: March 07, 2012, 08:26:20 pm »
Hi I'm new to JPCT engine and find it great and very interesting. I need to create a screen with 3d icons and text captions and i want these icons to be spread evenly on the screen, regardless the screen size of the device. I used blitting to position the captions as desired. But i have trouble positioning the corresponding 3d icons, I don't understand how to correlate screen size with the object translation units. Could you please explain how to do this? Once again, thank you very much for sharing this great engine!

Pages: [1]