1.6: Vectors: Acceleration towards Mouse - The Nature of Code

Subscribers:
1,740,000
Published on ● Video Link: https://www.youtube.com/watch?v=7eBLAgT0yUs



Category:
Tutorial
Duration: 10:06
56,499 views
1,227


In this video I look at how to calculate a vector that points from an object to the mouse. This vector is used as a "force" to pull the object towards the mouse position.

The Nature of Code
http://natureofcode.com/

Twitter: https://twitter.com/shiffman

Example code: https://github.com/shiffman/The-Nature-of-Code-Examples

Help us caption & translate this video!

http://amara.org/v/Qbw8/

📄 Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct







Tags:
processing.org
nature of code
vectors
PVector
acceleration
Processing (Programming Language)
physics tutorial
processing code mouse
the nature of code vectors
vectors processing
processing tutorial
how to follow mouse
attraction behavior
acceleration vector
PVector tutorial