If you're talking about something like, say, cactus (object, that stands always on place, but is dangerous), than you have, firstly, to implement a collision manager (a thing, which you will use to...