Movement and Collision: how do you do both?
Posted: Fri Feb 01, 2013 4:35 am
What's the best way to do this? What's the basic concept?
a) Move from position A to position B IF AND ONLY IF position B isn't a collision(with an impenetrable object)?
b) Move from position A to position B, and if position B is a collision, then re-adjust?
c) something else?
QUESTION 2: should a movable agent
a) have the same movement function applied to him at all times?
b) have various states, and have different movement functions for those various states? I.e. if it's in the air, on the ground, clinging to a wall, etc?
What's worked for you in the past? Ultimately I want to start collaborating, and I figure there are "best practices" out there.
a) Move from position A to position B IF AND ONLY IF position B isn't a collision(with an impenetrable object)?
b) Move from position A to position B, and if position B is a collision, then re-adjust?
c) something else?
QUESTION 2: should a movable agent
a) have the same movement function applied to him at all times?
b) have various states, and have different movement functions for those various states? I.e. if it's in the air, on the ground, clinging to a wall, etc?
What's worked for you in the past? Ultimately I want to start collaborating, and I figure there are "best practices" out there.