Replacing heading2D with heading for all general examples. Issue #1627

This commit is contained in:
Yong Bakos
2013-02-14 15:09:27 -07:00
parent 168f840491
commit 4ff94a3f16
5 changed files with 24 additions and 24 deletions

View File

@@ -68,10 +68,10 @@ class Boid {
steer.limit(maxforce); // Limit to maximum steering force
return steer;
}
void render() {
// Draw a triangle rotated in the direction of velocity
float theta = velocity.heading2D() + radians(90);
float theta = velocity.heading() + radians(90);
fill(200,100);
stroke(255);
pushMatrix();