mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-07-04 01:11:15 +00:00
3D Cameras with sweep and animation
This commit is contained in:
parent
4cc7a0c004
commit
7e76edc153
48 changed files with 3211 additions and 1511 deletions
21
addons/tattomoosa.vision_cone_3d/plugin.gd
Normal file
21
addons/tattomoosa.vision_cone_3d/plugin.gd
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
@tool
|
||||
extends EditorPlugin
|
||||
|
||||
const DEBUG_DRAW_TOOL := "Set Vision Cone Debug Draw Visibility"
|
||||
const VisionCone3DGizmoPlugin := preload ("./src/editor/VisionCone3DGizmoPlugin.gd")
|
||||
var gizmo : VisionCone3DGizmoPlugin = VisionCone3DGizmoPlugin.new()
|
||||
|
||||
func _enter_tree() -> void:
|
||||
gizmo.undo_redo = get_undo_redo()
|
||||
add_node_3d_gizmo_plugin(gizmo)
|
||||
|
||||
# add_tool_menu_item(
|
||||
# DEBUG_DRAW_TOOL,
|
||||
# func():
|
||||
# VisionCone3D.debug_draw_all = !VisionCone3D.debug_draw_all
|
||||
# )
|
||||
|
||||
|
||||
func _exit_tree() -> void:
|
||||
remove_node_3d_gizmo_plugin(gizmo)
|
||||
# remove_tool_menu_item(DEBUG_DRAW_TOOL)
|
||||
Loading…
Add table
Add a link
Reference in a new issue