- Bug marker position now updates on every process frame. - Updated licence document to include CC4 icons for bug reports.
22 lines
658 B
GDScript
22 lines
658 B
GDScript
extends Node3D
|
|
|
|
enum BugStatus { UNRESOLVED, IN_PROGRESS, RESOLVED }
|
|
@export var marker_status : BugStatus
|
|
const UNRESOLVED_COLOUR = Color(0.1, 0.0, 0.0)
|
|
const IN_PROGRESS_COLOUR = Color(0.5, 0.5, 0.0)
|
|
const RESOLVED_COLOUR = Color(0.0, 0.1, 0.0)
|
|
|
|
@export var follow_node : Node3D
|
|
|
|
|
|
func _process(_delta:float) -> void:
|
|
if not visible:
|
|
position = Vector3(0.0, 0.0, 0.0)
|
|
elif follow_node:
|
|
global_position = follow_node.global_position
|
|
|
|
func set_rotation_to_normal(_normal:Vector3):
|
|
global_transform.basis.y = _normal
|
|
global_transform.basis.x = global_transform.basis.z.cross(_normal)
|
|
global_transform.basis = global_transform.basis.orthonormalized()
|