Added body parts

This commit is contained in:
Segey Lapin
2021-10-26 22:07:38 +03:00
parent 3a1eaa721e
commit 635974263f
119 changed files with 131001 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
extends Spatial
func _process(delta):
# if !$skeleton/Skeleton.has_node("cap"):
var g = Vector3(0, -1, 0)
var p = global_transform
p.origin = Vector3()
var dg = p.xform_inv(g)
$AnimationTree["parameters/0/blend_position"] = Vector2(-dg.z, dg.y)
$AnimationTree["parameters/blend_position"] = dg.x