IT Community - Software Programming, Web Development and Technical Support

How to detect collisions between 3D objects in Java ME (J2ME) M3G ?

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 ?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > Mobile Software Development > J2ME

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-18-2007, 10:30 PM
itbarota itbarota is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 547
itbarota is on a distinguished road
Question How to detect collisions between 3D objects in Java ME (J2ME) M3G ?

How to detect collisions between 3D objects in Java ME (J2ME) M3G ?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-19-2007, 01:03 AM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 633
oxygen is on a distinguished road
Default Re: How to detect collisions between 3D objects in Java ME (J2ME) M3G ?

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.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -7. The time now is 06:17 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0