mirror of
https://github.com/processing/processing4.git
synced 2026-01-29 11:21:06 +01:00
Replacing heading2D with heading for all general examples. Issue #1627
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user