Horde3D

Next-Generation Graphics Engine
It is currently 19.04.2024, 02:11

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: h3dCastRay arg1[SOLVED]
PostPosted: 31.03.2010, 03:37 
Offline

Joined: 25.03.2010, 03:58
Posts: 13
Attachment:
castRay.PNG
castRay.PNG [ 18.74 KiB | Viewed 6298 times ]

where should be player on if many node under player?

h3dCastRay argument 1 is node to check,
what node is chosen in case of picture.

I am happy If ray return all collision point.


Last edited by sellee on 05.04.2010, 00:43, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: h3dCastRay arg1
PostPosted: 31.03.2010, 08:28 
Offline

Joined: 24.03.2010, 10:17
Posts: 55
Hi.

h3dCastRay (node, ...) searches node and all of node's children recursively for intersection.
So, if you can't guarantee that the nodes you want to intersect with are below a certain GroupNode, you will
have to specify H3DRootNode as starting node for the raycast. Then you will get all intersected nodes (within the ray's length)

Alex


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 28 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group