feat: track direction
This commit is contained in:
parent
73a91efbeb
commit
2298d65cd3
|
@ -4,7 +4,9 @@ import {Vector} from '@avocado/math';
|
||||||
import {simpleState, Trait} from '../trait';
|
import {simpleState, Trait} from '../trait';
|
||||||
|
|
||||||
const decorate = compose(
|
const decorate = compose(
|
||||||
simpleState('direction'),
|
simpleState('direction', {
|
||||||
|
track: true,
|
||||||
|
}),
|
||||||
);
|
);
|
||||||
|
|
||||||
class DirectionalBase extends Trait {
|
class DirectionalBase extends Trait {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user