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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user