[2.0.15] asteroids with .active = false do stop moving, but they still rotate

Bugs that are actually features.
User avatar
Quezler
Fast Inserter
Fast Inserter
Posts: 124
Joined: Fri Mar 25, 2016 6:37 pm
Contact:

[2.0.15] asteroids with .active = false do stop moving, but they still rotate

Post by Quezler »

ideally asteroids stop rotating their sprite too when they're "disabled by script".
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3455
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.15] asteroids with .active = false do stop moving, but they still rotate

Post by boskid »

I am going to say Not a bug.

Rotation is part of stateless animations where they are animated just by the entity tick passing. If they would be required to stop rotating, either they would have to become stateful updating rotation every tick or they would have to store an extra tick value to know at what tick rotation was stopped and what tick offset should be used when rendering them as rotating so the activate-deactivate transition would look seamless. Quite a lot for a feature base game would not be using but would have to pay the cost of keeping those extra variables just in case mods would want to use it.
Post Reply

Return to “Not a bug”