pjcast
26-07-2006 23:17:06
I have an issue with RaySceneQueries. When I move/rotate the camera directly, it functions fine - picks the right object.
However, if I attach the camera to a scenenode, then after I rotate/pitch the cameraNode at all.. the next pick attempt will return my Camera as the selected iitem.. Translating the node works as expected, but any rotation, and it goes wacko.
My Code: look at the SingleItemPick (but the volume pick does it too)
https://www.wreckedgames.com/svn/visual ... eEditor.cs
Again doing:
mCamera.pitch( ... ) or
mCamera.yaw( ... )
Works. As does doing mcamerNode.translate (.. )
But, Doing:
mCameraNode.pitch( ... ) or
mCameraNode.yaw( ... )
Results in always picking the camera.
Another strange thing, is that I even set the query flags on the camera to be different from the query flags I'm picking for :/
Any help is appreciated.
However, if I attach the camera to a scenenode, then after I rotate/pitch the cameraNode at all.. the next pick attempt will return my Camera as the selected iitem.. Translating the node works as expected, but any rotation, and it goes wacko.
My Code: look at the SingleItemPick (but the volume pick does it too)
https://www.wreckedgames.com/svn/visual ... eEditor.cs
Again doing:
mCamera.pitch( ... ) or
mCamera.yaw( ... )
Works. As does doing mcamerNode.translate (.. )
But, Doing:
mCameraNode.pitch( ... ) or
mCameraNode.yaw( ... )
Results in always picking the camera.
Another strange thing, is that I even set the query flags on the camera to be different from the query flags I'm picking for :/
Any help is appreciated.