@game-vir/entity - v15.1.1
    Preparing search index...

    Type Alias ViewCreation

    type ViewCreation = {
        hitbox?: Hitbox;
        view?: ViewContainer;
    }
    Index

    Properties

    Properties

    hitbox?: Hitbox

    A 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.

    view?: ViewContainer

    A view for rendering. Create with, for example, new AnimatedSprite or new Graphics, etc. imported from the pixi.js package.