Why isn't raycast working sometimes?

From Newton Wiki
Revision as of 08:02, 10 June 2019 by WikiSysop (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

many users have recently had trouble with the raycast commands "not working" in some situations.

possible explanations:

  • Have you set the Newton World size properly?
    • Setting the Newton World size is very important. many functions do not work in space outside the bounds of the Newton World.
  • Rays that start inside bodies will not return hit points for that object, they must always start outside the body.
    • Ray-polygon collision is detected only if ray origin is on the front side of polygon
    • Ensure your rays are specified to 'travel' in the direction you expect!

back to the FAQ