ForumsProgramming ForumCollision detection woes.

1 2388
Sparkky
offline
Sparkky
14 posts
Nomad

Here is my collision detection loop in sudo-code to assist with reading.

if(Avatar is not colliding with enviroment)
{
while(Enviroment left to move)
{
;
}
}else
{
while(iterator != null)
{
iterator.getValue().moveX(mAvatar.getXVel());
iterator = iterator.getNext();
}
mAvatar.setXVel(0);
lockRight = true;
lockDirection();
}

  • 1 Reply
Sparkky
offline
Sparkky
14 posts
Nomad

can somebody delete this, it was posted by accident.

Showing 1-1 of 1