Why reset hit_counter when there is a merge ? #228
Unanswered
RobinNogues
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello !
In the merge method, you reset hit_counter, but if the object is lost in the following frames, the object dies while hint_counter was maybe at 200 before the reset. I just wondering why or if I am completely wrong :)
Here is 2 prints, one before the merge and one after. In my case this object (id=1) always dies. That's why I am asking this question.
[1mObject_1[0m(age: 157, hit_counter: 122, last_distance: 0.33, init_id: 2)
[1mObject_1[0m(age: 157, hit_counter: 2, last_distance: 0.29, init_id: 2)
Thank you !
Beta Was this translation helpful? Give feedback.
All reactions