From 2298d65cd322acb2f6d0c38c096ff9a781c46971 Mon Sep 17 00:00:00 2001 From: cha0s Date: Mon, 18 Mar 2019 20:05:11 -0500 Subject: [PATCH] feat: track direction --- packages/entity/traits/directional.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/entity/traits/directional.js b/packages/entity/traits/directional.js index 8d68f95..55cd103 100644 --- a/packages/entity/traits/directional.js +++ b/packages/entity/traits/directional.js @@ -4,7 +4,9 @@ import {Vector} from '@avocado/math'; import {simpleState, Trait} from '../trait'; const decorate = compose( - simpleState('direction'), + simpleState('direction', { + track: true, + }), ); class DirectionalBase extends Trait {