chore: convenience
This commit is contained in:
parent
545348e3b5
commit
61ffd3503b
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue
Block a user