16 reputation
1
bio website webinstitute.wordpress.com
location United States
age 31
visits member for 2 years, 1 month
seen Feb 19 '13 at 5:35

Oct
10
awarded  Student
Oct
10
comment How to design 2D collision callback methods?
But wouldn't that be inefficient to rebuild that list of colliders every frame? Especially that I would have to do this for every object in the scene?
Oct
10
comment How to design 2D collision callback methods?
yes because that switch statement will be very ugly specially if that object collides with many others!! how would you do it then?
Oct
10
comment How to design 2D collision callback methods?
So inside that collideWith(obj) you still have to do maybe a switch statement for each kind of obj, right? Like switch(obj) case tinCan: //do whatever
Oct
10
asked How to design 2D collision callback methods?