diff options
Diffstat (limited to 'demos/3d/mousepick_test')
-rw-r--r-- | demos/3d/mousepick_test/engine.cfg | 5 | ||||
-rw-r--r-- | demos/3d/mousepick_test/icon.png | bin | 2451 -> 0 bytes | |||
-rw-r--r-- | demos/3d/mousepick_test/mousepick.gd | 24 | ||||
-rw-r--r-- | demos/3d/mousepick_test/mousepick.scn | bin | 40434 -> 0 bytes |
4 files changed, 0 insertions, 29 deletions
diff --git a/demos/3d/mousepick_test/engine.cfg b/demos/3d/mousepick_test/engine.cfg deleted file mode 100644 index 093999a87a..0000000000 --- a/demos/3d/mousepick_test/engine.cfg +++ /dev/null @@ -1,5 +0,0 @@ -[application] - -name="3D Mouse Picking Test" -main_scene="res://mousepick.scn" -icon="res://icon.png" diff --git a/demos/3d/mousepick_test/icon.png b/demos/3d/mousepick_test/icon.png Binary files differdeleted file mode 100644 index 264f991e15..0000000000 --- a/demos/3d/mousepick_test/icon.png +++ /dev/null diff --git a/demos/3d/mousepick_test/mousepick.gd b/demos/3d/mousepick_test/mousepick.gd deleted file mode 100644 index 674ec7ff6f..0000000000 --- a/demos/3d/mousepick_test/mousepick.gd +++ /dev/null @@ -1,24 +0,0 @@ - -extends RigidBody - -# Member variables -var gray_mat = FixedMaterial.new() -var selected = false - - -func _input_event(camera, event, pos, normal, shape): - if (event.type==InputEvent.MOUSE_BUTTON and event.pressed): - if (not selected): - get_node("mesh").set_material_override(gray_mat) - else: - get_node("mesh").set_material_override(null) - - selected = not selected - - -func _mouse_enter(): - get_node("mesh").set_scale(Vector3(1.1, 1.1, 1.1)) - - -func _mouse_exit(): - get_node("mesh").set_scale(Vector3(1, 1, 1)) diff --git a/demos/3d/mousepick_test/mousepick.scn b/demos/3d/mousepick_test/mousepick.scn Binary files differdeleted file mode 100644 index 0b6c33c119..0000000000 --- a/demos/3d/mousepick_test/mousepick.scn +++ /dev/null |