> X-Originating-IP: [194.83.240.23]
> Mime-Version: 1.0
> Date: Wed, 2 Feb 2000 18:15:18 CET
> From: Anders Breivik <[EMAIL PROTECTED]>
> Subject: [JAVA3D] Collision Detection
> To: [EMAIL PROTECTED]
>
> 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);
> ^
> 2 errors
>
>
> (The program runs fine when WakeupOnCollisionEntry(shape) is used.)
>
> Does anyone have an idea of what I might have done wrong?
>
>
> Any feedback is greatly appreciated!
>
The constants are defined in the class so you need to give the full
class name when specifying:
WakeupOnCollisionEntry(shape, WakeupOnCollisionEntry.USE_GEOMETRY);
Dan Petersen
Java 3D Team
Sun Microsystems
** Look for the newsgroup: comp.lang.java.3d **
===========================================================================
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".