fix entities just visible after first position change

This commit is contained in:
Bixilon 2023-05-31 21:28:36 +02:00
parent bf9032c376
commit 9f0ca282fa
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -42,6 +42,10 @@ class EntityRenderInfo(private val entity: Entity) : Drawable, Tickable {
var rotation: EntityRotation = rotation1
private set
init {
interpolateAABB(true)
}
private fun interpolatePosition(delta: Float) {
val position1 = this.position1