melonJS
    Preparing search index...

    Interface RaycastHit

    Result of a successful PhysicsAdapter.raycast.

    interface RaycastHit {
        fraction: number;
        normal: Vector2d;
        point: Vector2d;
        renderable: Renderable;
    }
    Index

    Properties

    fraction: number

    position along the ray, 0..1 from from to to

    normal: Vector2d

    surface normal at the hit point

    point: Vector2d

    world-space hit point

    renderable: Renderable

    the renderable whose body the ray hit