|
Post by tbird on Mar 5, 2019 10:49:00 GMT -6
Here is a simple version of how I do my ID pooling in my scene editor, it simply uses stack to push and pop an ID number. In this example hit "SPACE" to create a missle it will fly towards the target if it contacts it will disappear, try and contact different targets (not in order as they come) and watch the ID numbers, then hit space again and see how it re-uses the returned ID's. This is how I am doing my framework for networking, that way you don't have an ID number that just keeps skyrocketing everytime you create more objects.
|
|