Not sure why that doesn't work, but try using a segment instead of a ray, with values from your player, down far enough you know you'll get something back... I would think a pick segment might be faster than a ray as well (??)
 
Scott

[Smith, Daniel]  -----Original Message-----
From: Chad Zalkin [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 03, 2002 12:56 PM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] How long is a pickray?

I created my application to implement gravity.  I'm sending a pickray directly down from the viewplatform.  If the ray hits the ground, and the ground is below the "feet" you "fall" down the y axis. 
 
The problem is that when the avatar is far from any pickable objects, the ray fails to pick anything and I'm left floating in midair.  When I float over an object that is closer, the whole thing works and I fall with proper acceleration and everything.
 
I thought a pickray was infinite, why doesn't it work?  Is this a bounds issue?  What node would need a bigger bounding box?
 
Thanks
Chad Zalkin

Reply via email to