Fix really really really annoying issue with enemy spawns

Godot refuses to set CharacterBody3D positions correctly unless you call ResetPhysicsInterpolation immediately after
This commit is contained in:
2026-03-01 17:54:34 -08:00
parent e50035d9c7
commit 840ffe1a9a
6 changed files with 23 additions and 9 deletions

View File

@@ -234,7 +234,7 @@ public class EffectService
var enemyPosition = new Vector3(enemy.GlobalPosition.X, 0f, enemy.GlobalPosition.Z);
var enemyType = EnemyTypeToEnemyConverter.Convert(enemy);
var duplicatedEnemy = EnemyTypeToEnemyConverter.Convert(enemyType);
duplicatedEnemy.Position = enemy.GlobalPosition + enemy.GlobalBasis.X;
duplicatedEnemy.GlobalPosition = enemy.GlobalPosition + enemy.GlobalBasis.X;
_map.AddChild(duplicatedEnemy);
}

View File

@@ -33,5 +33,6 @@ shape = SubResource("BoxShape3D_03cqg")
unique_name_in_owner = true
pixel_size = 0.005
billboard = 2
alpha_cut = 1
texture_filter = 0
render_priority = 100