Optional
hitboxA Body instance for hitbox collision detection. Create one with, for example,
this.hitboxSystem.createBox()
or import directly from the
detect-collisions
package, like with
new Circle
.
This property optional, if a hitbox is not provided, collision detection will not be calculated for this entity.
Optional
viewA view for rendering. Create with, for example, new AnimatedSprite
or new Graphics
, etc. imported from the
pixi.js
package.
Output of ViewEntity.createView.