On 17 Jan 00, at 8:37, Dean Keeler wrote:
> Hi All,
>
> I am trying to write a collision detection routine. I have followed the examples in
>the "Ready-to-Run Java 3D" book and also from mail archive from Tony Burrows. I have
>been unable to get it to work. Whenever I try to use the collision detection routine
>it hangs the process and I have to go
into Task Manager on WinNT and shut down the task. I have also looked at the
"TickTockCollision" Example and have not been able to get any farther. I am reading
in a VRML file with named nodes and am setting collision detection on those nodes.
Can anyone help? Please.
>
> Also, do I set the collision detection on the node that I am moving or on all the
>other nodes? That part was not quite clear to me.
>
Dean
Just a few points that caused me problems.
1 Are you sure that the scheduling bounds are greater than zero?
2 Make sure the same is true for collision bounds (make sure
tempNode.getBounds() is returning something sensible)
3 If the colliding object is close to another object at the start of the
scene, then this can block collision detection
4 Collision with primitives is VERY unreliable - lots of people have
had problems with it
5 If one collision situation is going on then it blocks all other
collision detection for that object.
Also, the collision detector is on the transform holding the colliding
shape.
I can't comment directly on your code 'cause I haven't dealt with
loading VRML files (yet). I will try and look at it in a couple of days.
Tony
Avoid the Gates of Hell - use Linux
Tony Burrows
===========================================================================
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".