Fixed an issue where the first frame of the projectile launched by the projectile weapon was not oriented correctly. Modify the new presentation diagram.

修复抛射体武器发射的抛射体第一帧方向不对的问题。修改新的演示图。
This commit is contained in:
Cold-Mint 2024-10-14 11:02:29 +08:00
parent e370009b18
commit 02a0e92d38
Signed by: Cold-Mint
GPG Key ID: C5A9BF8A98E0CE99
5 changed files with 1 additions and 4 deletions

View File

@ -92,8 +92,6 @@ collision_layer = 256
collision_mask = 160
script = ExtResource("1_t1qdg")
Path = "res://prefab/ui/SpellEditorUI.tscn"
_initialDurability = null
_maxDurability = null
_furnitureName = "ui_spell_editor"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]

View File

@ -90,8 +90,6 @@ texture = ExtResource("6_dbg76")
[node name="RigidBody2D" parent="." instance=ExtResource("5_0kep0")]
position = Vector2(227, 283)
_initialDurability = 0
_maxDurability = 0
[node name="WoodenBox" parent="." instance=ExtResource("7_jybe6")]
position = Vector2(715, 244)

View File

@ -270,6 +270,7 @@ public partial class ProjectileWeapon : WeaponTemplate
spell.ModifyProjectile(i, projectile, ref velocity);
}
NodeUtils.CallDeferredAddChild(GameSceneDepend.ProjectileContainer, projectile);
projectile.LookAt(velocity);
projectile.Owner = owner;
projectile.TargetNode = GameSceneDepend.TemporaryTargetNode;
projectile.Velocity = velocity;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 953 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1007 B