fix aphid root bone variation
This commit is contained in:
@@ -41,8 +41,10 @@ bones/6/rotation = Quaternion(-3.38449e-07, 0.863712, 0.503987, -5.80021e-07)
|
|||||||
bones/7/rotation = Quaternion(0.526107, -8.35521e-14, 7.06609e-07, 0.850418)
|
bones/7/rotation = Quaternion(0.526107, -8.35521e-14, 7.06609e-07, 0.850418)
|
||||||
bones/10/rotation = Quaternion(-0.235443, 0.235445, -0.666758, 0.666758)
|
bones/10/rotation = Quaternion(-0.235443, 0.235445, -0.666758, 0.666758)
|
||||||
bones/11/rotation = Quaternion(-0.235443, 0.235445, -0.666758, 0.666758)
|
bones/11/rotation = Quaternion(-0.235443, 0.235445, -0.666758, 0.666758)
|
||||||
|
bones/12/scale = Vector3(1, 1, 1)
|
||||||
bones/13/rotation = Quaternion(-0.235443, -0.235445, 0.666758, 0.666758)
|
bones/13/rotation = Quaternion(-0.235443, -0.235445, 0.666758, 0.666758)
|
||||||
bones/14/rotation = Quaternion(-0.235443, -0.235445, 0.666758, 0.666758)
|
bones/14/rotation = Quaternion(-0.235443, -0.235445, 0.666758, 0.666758)
|
||||||
|
bones/15/scale = Vector3(1, 1, 1)
|
||||||
|
|
||||||
[node name="AnimationTree" parent="." index="1"]
|
[node name="AnimationTree" parent="." index="1"]
|
||||||
root_node = NodePath("../AphidModel")
|
root_node = NodePath("../AphidModel")
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ var spawned_honeydews: Dictionary = {}
|
|||||||
var honeydew_scene := preload("res://scenes/items/honeydew.tscn")
|
var honeydew_scene := preload("res://scenes/items/honeydew.tscn")
|
||||||
|
|
||||||
var _bones_to_scale: PackedStringArray = [
|
var _bones_to_scale: PackedStringArray = [
|
||||||
"Root",
|
|
||||||
"Antenna_root_L",
|
"Antenna_root_L",
|
||||||
"Eye_L",
|
"Eye_L",
|
||||||
"Antenna_root_R",
|
"Antenna_root_R",
|
||||||
@@ -40,7 +39,11 @@ func _ready() -> void:
|
|||||||
-BONE_SCALE_VARIATION,
|
-BONE_SCALE_VARIATION,
|
||||||
BONE_SCALE_VARIATION,
|
BONE_SCALE_VARIATION,
|
||||||
)
|
)
|
||||||
skeleton.set_bone_pose_scale(bone, Vector3.ZERO)
|
skeleton.set_bone_pose(bone, bone_transform)
|
||||||
|
skeleton.scale *= 1 + randf_range(
|
||||||
|
-BONE_SCALE_VARIATION,
|
||||||
|
BONE_SCALE_VARIATION,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
func _process(delta: float) -> void:
|
func _process(delta: float) -> void:
|
||||||
|
|||||||
Reference in New Issue
Block a user