CSCI 1106 Player Movement

CSCI 1106 Player Movement

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview:   A mouse click sets the target to move toward Calculate distance between the avatar and target Incrementally move the avatar toward the target Note: the avatar isn’t guaranteed to reach the target because the target will change if another locaEon is clicked first •  Pros: –  Makes the physics of the game more realisEc –  Restricts avatar movement by ignoring clicks on illegal areas of the...
View Full Document

This document was uploaded on 03/27/2014 for the course CSCI 1106 at Dalhousie.

Ask a homework question - tutors are online