import { Component } from '@serpentity/serpentity'; /* * Position component, stores the location of an object in x, y and z * Public members: * -x // the position along the x axis * -y // the position along the y axis * -z // the position along the z axis */ export default class Position extends Component { constructor(config) { super(config) this.x = this.x || 0; this.y = this.y || 0; this.z = this.z || 0; } };