iterami/Docs.htm/common HTM Repos/webgl.js/webgl_pick_entity(args)
- Checks "webgl_pixelbuffers" objects within a specific range for "sync === null" and "picked !== false" to determine what entity has been recently picked via webgl_pick(cursor).
- Use the "start" and "end" args to control the range that is checked. Mouse movement picking is 0 to 1, and mouse click picking is 2 to 3.
- If the "end" arg is less than the "start" arg, then "end" will be set to "webgl_pixelbuffers.length - 1".
- If the "checked" property of the pixelbuffer is false, then it will be skipped.
- Returns the entire pixelbuffer object with the entity object as its "picked" property.
| end
| -1
| integer
|
| start
| 0
| integer
|