EntityPickMode.htm 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <html>
  2. <head>
  3. <title>Blitz3D Docs</title>
  4. <link rel=stylesheet href=../css/commands.css type=text/css>
  5. </head>
  6. <body>
  7. <h1>EntityPickMode entity,pick_geometry[,obscurer]</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. entity - entity handle <br />
  13. <br />
  14. pick_geometry - type of geometry used for picking: <br />
  15. 0: Unpickable (default) <br />
  16. 1: Sphere (EntityRadius is used) <br />
  17. 2: Polygon <br />
  18. 3: Box (EntityBox is used) <br />
  19. <br />
  20. obscurer (optional) - True to determine that the entity 'obscures' other entities during an EntityVisible call. Defaults to True.
  21. </td>
  22. </tr>
  23. </table>
  24. <h1>Description</h1>
  25. <table>
  26. <tr>
  27. <td>
  28. Sets the pick mode for an entity. <br />
  29. <br />
  30. The optional obscurer parameter is used with EntityVisible to determine just what can get in the way of the line-of-sight between 2 entities. This allows some entities to be pickable using the other pick commands, but to be ignored (i.e. 'transparent') when using EntityVisible. So, its very much EntityVisible specific. <br />
  31. <br />
  32. Please note that only Sphere and Box picking will work with Blitz3D sprites. For polygon picking, you will need a valid mesh.
  33. <br>
  34. <br>
  35. See also: <a class=small href=EntityPick.htm>EntityPick</a>, <a class=small href=LinePick.htm>LinePick</a>, <a class=small href=CameraPick.htm>CameraPick</a>, <a class=small href=EntityPickMode.htm>EntityPickMode</a>.
  36. </td>
  37. </tr>
  38. </table>
  39. <br>
  40. <a target=_top href=../index.htm>Index</a><br>
  41. <br>
  42. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=EntityPickMode&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  43. </html>