Skip to main content
GameDev.net gamedev.net
🔒 Locked

which class is collision function placed?

Started by luasitdown Jan 22, 2006 at 7:12 AM 0 replies 350+ views
Original Post
luasitdown
luasitdown
I create a class Collision. put collision detection and respone function in it. but someone tell me it better be placed in base class like Movable Entity etc.. why ? now I meet some problem with my class Collision. be better to put it in Object class .the problem :variable used in collision function is different to each Object.a collision function is hard to contain many object info. what is your opinion?
SuperNerd
SuperNerd
I would experiment with different methods organizing your code till you find the easiest and the fastest development for you. Think of the advantages and disadvantages of eatch possibity and take the best one. It may be the way you are already doing it.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.