Atlas Engine
API Referencebezel

SweepHit

Contact encountered while sweeping a collider along a movement path.

Module: bezel

Contact encountered while sweeping a collider along a movement path.

Declaration

export type SweepHit = {
        position: Position3d;
        normal: Normal3d;
        distance: number;
        percentage: number;
        object: GameObject;
    };

Properties

position

position: Position3d;

normal

normal: Normal3d;

distance

distance: number;

percentage

percentage: number;

object

object: GameObject;

On this page