blob: a5cb9c59c3e282ffe49570c7e62f4a175bac0dc8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
@tool
# Hand mirror helper script, useful for animating characters
extends Node3D
@export var enabled := true
@onready var hand_right = $Main/HandRight
@onready var hand_left = $Main/HandLeft
func _process(delta):
if enabled:
hand_right.position = hand_left.position * Vector3(-1,1,1)
hand_right.rotation = hand_left.rotation * Vector3(1, -1, -1) - Vector3(0.2 * PI, 0, 0)
|