On 2 Feb 00, at 18:15, Anders Breivik wrote:
> Hi,
>
> I've just started learning how to use Java3D's collision detection
> methods using the example TickTockCollision class. There is one simple issue
> which I can't figure out:
>
> I've used "WakeupOnCollisionExit(Node armingNode,int speedHint)"
> where speedHint is either USE_BOUNDS or USE_GEOMETRY. However,
> both USE_BOUNDS and USE_GEOMETRY are recognised as undefined variables
> at compilation:
>
> CollisionDetector.java:59: Undefined variable: USE_GEOMETRY
> wEnter = new WakeupOnCollisionEntry(shape,USE_GEOMETRY);
> ^
> CollisionDetector.java:60: Undefined variable: USE_GEOMETRY
> wExit = new WakeupOnCollisionExit(shape,USE_GEOMETRY);
> ^
USE_BOUNDS and USE_GEOMETRY are two flags defined in the
collision class Anders. They are not generally recognised names
(a bit like the setCapability flags) so they need to be used with a
class identifier:
WakeupOnCollisionEntry.USE_BOUNDS etc should work
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".