|
@@ -1,16 +1,12 @@
|
|
|
= Mouse Picking
|
|
|
-:author:
|
|
|
-:revnumber:
|
|
|
-:revdate: 2016/03/17 20:48
|
|
|
+:revnumber: 2.0
|
|
|
+:revdate: 2020/07/23
|
|
|
:keywords: documentation, node, ray, click, collision, keyinput, input
|
|
|
-:relfileprefix: ../../
|
|
|
-:imagesdir: ../..
|
|
|
-ifdef::env-github,env-browser[:outfilesuffix: .adoc]
|
|
|
|
|
|
|
|
|
Mouse picking means that the user clicks an object in the scene to select it, or to interact with it otherwise. Games use picking to implement aiming and shooting, casting spells, picking up objects, selecting targets, dragging and moving objects, etc. Mouse picking can be done using fixed crosshairs, or using the mouse pointer.
|
|
|
|
|
|
-image:jme3/advanced/mouse-picking.png[mouse-picking.png,width="",height=""]
|
|
|
+image:input/mouse-picking.png[mouse-picking.png,width="",height=""]
|
|
|
|
|
|
See <<jme3/advanced/input_handling#,Input Handling>> for details on how to define the necessary input triggers, input mappings, and input listeners.
|
|
|
|