Ticket #79 (assigned defect)
RaySceneQueryResultEntry - worldFragment always null.
| Reported by: | jonny912 | Owned by: | borrillis |
|---|---|---|---|
| Priority: | major | Milestone: | 0.8.0.0-RC1 |
| Component: | Plugin : Terrain SceneManager | Version: | 0.8.0.0 (crickhollow) |
| Keywords: | Cc: |
Description
When performing a RaySceneQuery?, the worldFragment variable is always null, even if the ray intersects the terrain.
Example:
Ray ray = m_Camera.GetCameraToViewportRay(x, y);
RaySceneQuery rsq = m_SceneManager.CreateRayQuery(ray);
var results = rsq.Execute();
foreach (RaySceneQueryResultEntry rsqre in results)
{
// worldFragment is always null.
if(rsqre.worldFragment != null)
{
Vector3 click = rsqre.worldFragment.SingleIntersection;
}
}
Presumably this just hasn't been implemented in the TSM.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
