AlmasB / FXGL

Java / JavaFX / Kotlin Game Library (Engine)
http://almasb.github.io/FXGL/
MIT License
4.45k stars 555 forks source link

Pooled entities do not parse data #1349

Open AlmasB opened 9 months ago

AlmasB commented 9 months ago

In fun create(entityName: String, data: SpawnData): Entity in GameWorld, the implementation is:

        if (pooledEntity != null) {
            pooledEntity.setPosition3D(data.x, data.y, data.z)

            return pooledEntity
        }

the position is reset, however, other data elements are not. Requires thinking through the specification.