Files
SpaceBots/.svn/pristine/51/5157c1c36ce8193d4083088210d4b3d040402fcb.svn-base
2026-01-21 23:51:53 +01:00

15 lines
324 B
Plaintext

extends Skeleton3D
var bones: Array[int] = [6,11,16,21,26,31,36,41]
var boneRotations: Array[Quaternion]
func _ready() -> void:
for bone in bones:
boneRotations.push_back(get_bone_pose_rotation(bone))
func _process(delta: float) -> void:
var x = 0
for bone in bones:
set_bone_pose(bone, boneRotations[x])
x += 1