Page 1 of 1
[2.0.15] asteroids with .active = false do stop moving, but they still rotate
Posted: Wed Nov 06, 2024 2:14 pm
by Quezler
ideally asteroids stop rotating their sprite too when they're "disabled by script".
Re: [2.0.15] asteroids with .active = false do stop moving, but they still rotate
Posted: Fri Nov 15, 2024 5:28 pm
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.