Hi
I am not sure if this a bug or not but if understand the API correctly h3d.getCastRayResult should return some kind of handle to the intersected node. In .NET binding the node parameter of the method is not defined with out keyword. So the method is taking int parameter as input but not returning horde id of the intersected node. The API documentation for corresponding C++ method is:
DLL bool h3dGetCastRayResult(int index, H3DNode* node, float* distance, float* intersection)
Parameters
index index of result to be accessed (range: 0 to number of results returned by castRay) node handle of intersected node distance distance from ray origin to intersection point intersection coordinates of intersection point (float[3] array)
Best regards, Tommi Laukkanen
|