It might help to explain what you're talking about. It sounds like you're using a game engine, but which one?