Closed Alanine42 closed 1 month ago
in case the player or the egg is outside of the map, translate it to a random location above the map (respawn).
the translation can be immediate or across 20 frames (disable collision systems and movement requests while doing so)
nice2have: death swap also lasts across 20 frames instead of an immediate swap.
lerping is already implemented.
add LerpingComponent(startPos, endPos) to any entity and set its PositionComponent.isLerping to true.
in case the player or the egg is outside of the map, translate it to a random location above the map (respawn).
the translation can be immediate or across 20 frames (disable collision systems and movement requests while doing so)
nice2have: death swap also lasts across 20 frames instead of an immediate swap.