Horde3D http://www.horde3d.org/forums/ |
|
h3dCastRay arg1[SOLVED] http://www.horde3d.org/forums/viewtopic.php?f=1&t=1139 |
Page 1 of 1 |
Author: | sellee [ 31.03.2010, 03:37 ] |
Post subject: | h3dCastRay arg1[SOLVED] |
Attachment: castRay.PNG [ 18.74 KiB | Viewed 11648 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. |
Author: | AlexL [ 31.03.2010, 08:28 ] |
Post subject: | Re: h3dCastRay arg1 |
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 |
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |