ioxu / key

Key, a game made with the Godot Engine 4.
MIT License
6 stars 1 forks source link

enemy POIs get snapped to world.y = 0 #32

Closed ioxu closed 2 years ago

ioxu commented 2 years ago

Exposed by trying vertical jumping levels, when enemies drop a new POI, the POI get snapped to Y=0.0. https://github.com/ioxu/key/blob/b0e1602a8ca28ffff386a5155ded98fa205f1027/data/enemies/Enemy.gd#L497

ioxu commented 2 years ago
        #poi.transform.origin = position * Vector3(1.0, 0.0, 1.0)
        poi.transform.origin = position

Good enough for now.