This is a discussion on How to detect collisions between 3D objects in Java ME (J2ME) M3G ? within the J2ME forums, part of the Mobile Software Development category; How to detect collisions between 3D objects in Java ME (J2ME) M3G ?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| When you use M3G graphics for creating 3D games in J2ME, you need to find the collision between objects. RayIntersection class gives the required functionality. But in most cases, rayIntersection method works only with the Pick method where you specify your camera. rayIntersection.getIntersected() method gives you the node to which the Ray is intersected and you can also get the distance between the camera and the object. With these information you can determine whether the camera has collided with a 3D object like wall and take appropriate actions such as bounce back or restrict movements. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How would you detect and minimize memory leaks in Java? | oxygen | Java Programming | 1 | 07-26-2007 05:01 AM |
| How to rotate 3d objects using j2me? | mobilegeek | J2ME | 1 | 07-24-2007 06:36 AM |
| How would you detect and minimize memory leaks in Java? | H2o | Java Programming | 1 | 07-24-2007 03:45 AM |
| How to rotate 3d objects using j2me? | mobilegeek | J2ME | 1 | 07-23-2007 10:46 PM |
| How to detect collisions between 3D objects in Java ME (J2ME) M3G ? | itbarota | J2ME | 0 | 07-17-2007 11:53 PM |