You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When autoUpdate = true, we would expect the emitter to respect the speed property of the shared ticker (like other related concepts such as AnimatedSprite). It's almost like delta is ignored completely. Update: It is!
/** * Updates all particles spawned by this emitter and emits new ones. * @param delta Time elapsed since the previous frame, in __seconds__. */publicupdate(delta: number): void{if(this._autoUpdate){delta=ticker.elapsedMS*0.001;// ^ 💥 delta param is discarded}
Do you think it might be unexpected that the delta parameter is discarded and the global const ticker's elapsedMS is used instead?
The text was updated successfully, but these errors were encountered:
Hey there 👋
When
autoUpdate = true
, we would expect the emitter to respect thespeed
property of the shared ticker (like other related concepts such asAnimatedSprite
).It's almost likeUpdate: It is!delta
is ignored completely.It's probably due to Emitter.ts#L563?
Do you think it might be unexpected that the delta parameter is discarded and the global const
ticker
'selapsedMS
is used instead?The text was updated successfully, but these errors were encountered: