chore: convenience

This commit is contained in:
cha0s 2021-02-16 15:49:33 -06:00
parent 545348e3b5
commit 61ffd3503b

View File

@ -121,6 +121,8 @@ export default () => class Positioned extends decorate(Trait) {
methods() {
return {
distanceFrom: (other) => Vector.distance(this.entity.position, other.position),
pointAround: (radius, angle) => {
if (!this.entity.is('Positioned')) {
return [0, 0];