Commit 1250b919 authored by Jens-Christian Fischer's avatar Jens-Christian Fischer
Browse files

Change Radius on Acceleration

parent f2575307
......@@ -3,7 +3,7 @@ defmodule Grains.Mixfile do
def project do
[app: :grains,
version: "0.0.49",
version: "0.0.50",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
......
......@@ -110,7 +110,7 @@ visuals.on("velocity", state => {
visuals.on("acceleration", state => {
console.log("acceleration: ", state);
PresenceSketch.set_acceleration(state.user, state.z);
PresenceSketch.set_acceleration(state.user, state.force);
});
visuals.join().receive("ok", resp => {
......
......@@ -21,7 +21,7 @@ Boid.prototype.set_velocity = function(dx, dy) {
};
Boid.prototype.set_acceleration = function(z) {
this.r = 32;
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