iterami/Docs.htm/common HTM Projects/webgl.js/webgl_pick_entity(args)
- Requires the "webgl_properties['picking']" to be at least 1 before picking can be done.
- Uses the framebuffer and picking shader created by webgl_framebuffer_init() to determine which entity was picked.
- The "cursor" arg dictates if the cursor should be changed to "pointer" when hovering over a pickable entity instead of triggering picking event.
- Triggers optional events and returns the entity object if an entity is picked.
- Returns picked entity or false if no entity is picked.
cursor
| false
| boolean
|
x
| core_pointer['x']
| number
|
y
| core_pointer['y']
| number
|