Commit 78f998db authored by Jens-Christian Fischer's avatar Jens-Christian Fischer
Browse files

Fucking evil mode / deleted a function

parent a5c0e727
......@@ -3,7 +3,7 @@ defmodule Grains.Mixfile do
def project do
[app: :grains,
version: "0.0.51",
version: "0.0.52",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
......
......@@ -16,6 +16,11 @@ function Boid(p, x, y) {
this.maxforce = 0.05; // Maximum steering force
};
Boid.prototype.set_velocity = function(dx, dy) {
this.velocity = this.p.createVector(dx, dy);
};
Boid.prototype.set_acceleration = function(z) {
if (Math.abs(z) > 0.5) {
this.radius = 32;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment