Ok, my solution is to catch only Entry/Exit events (with USE_BOUNDS,
not USE_GEOMETRY, because the former is much more precise). Set bounds
to the size bigger a little bit that your model. Use the model as an
arm object. The objects in the scene - as triggers. Surround both the
arm object and the triggers by bounds (either spheres or boxes). Don't
forget to setCollidable(false) on any other object in the scene u
don't want to catch the collisions with (with the ground at the very
least). Between Entry and Exit events define programmatically (not via
Java3D) in what direction the avatar can move. Everything should work
relatively nicely. And, yes, DO read some tutorial.

vladimir
             -=V=-
>-------<=============>-------<
Join in Java community now!
http://JavaCafe.VirtualAve.net/
>-------<=============>-------<

In your previous letter u wrote:
--------------------------------
AB> Hello,

AB> First of all thanks to Dan, Andrew, Eric and all others who gave me the
AB> solution to my previous problem.

AB> Currently I am trying to figure out how to implement collision detection for
AB> my 3D world. I wish to detect when the view platform collides with objects
AB> in the scene and then alter the view co-ordinates upon collision. The user
AB> should be able to navigate around from one room to another without going
AB> through the walls. I�m having some difficulties with this, so I was hoping
AB> any of you could give me some pointers.

AB> My main idea was to use WakeupOnViewPlatformEntry/Exit(Bounds region) and to
AB> alter the view co-ordinates in the processStimulus() method when the view
AB> platform intersects with an object�s bound region. (Is this a good
AB> approach?) Anyway, this requires that the bounds region used must surround
AB> the actual object which is collidable. How can I find such accurate
AB> boundaries of each collidable object?

AB> Is there a method in java 3D which can encapsulate an object with a bounds
AB> object (for example by giving it the geometry of that object)??

AB> Is there anyone who has implemented collision detection for navigating
AB> around in a scene? What are the alternatives/better ways of doing this.

AB> Any feedback is greatly appreciated.


AB> Regards
AB> Anders.

AB> ______________________________________________________
AB> Get Your Private, Free Email at http://www.hotmail.com

AB> ===========================================================================
AB> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
AB> of the message "signoff JAVA3D-INTEREST".  For general help, send email to
AB> [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to