ecspresso
    Preparing search index...

    Function applyImpulse

    • Apply an instantaneous impulse: velocity += impulse / mass.

      Parameters

      • ecs: {
            getComponent(id: number, name: "velocity"): Vector2D | undefined;
            getComponent(id: number, name: "rigidBody"): RigidBody | undefined;
        }
      • entityId: number
      • ix: number
      • iy: number

      Returns void