Black Trigram (흑괘) - API Documentation - v0.2.10
    Preparing search index...

    Interface PhysicsSystemInterface

    interface PhysicsSystemInterface {
        addEntity: (entityId: string, config: PhysicsEntityConfig) => void;
        applyForce: (entityId: string, force: Velocity) => void;
        checkCollision: (
            entityIdA: string,
            entityIdB: string,
        ) => null | CollisionData;
        getEntityState: (entityId: string) => undefined | PhysicsEntityState;
        removeEntity: (entityId: string) => void;
        update: (deltaTime: number) => void;
    }
    Index

    Properties

    addEntity: (entityId: string, config: PhysicsEntityConfig) => void
    applyForce: (entityId: string, force: Velocity) => void
    checkCollision: (entityIdA: string, entityIdB: string) => null | CollisionData
    getEntityState: (entityId: string) => undefined | PhysicsEntityState
    removeEntity: (entityId: string) => void
    update: (deltaTime: number) => void