Type alias RayOptions

RayOptions: {
    callback?: RaycastCallback;
    checkCollisionResponse?: boolean;
    collisionFilterGroup?: number;
    collisionFilterMask?: number;
    from?: Vec3;
    mode?: RayMode;
    result?: RaycastResult;
    skipBackfaces?: boolean;
    to?: Vec3;
}

RayOptions

Type declaration

  • Optional callback?: RaycastCallback

    callback

  • Optional checkCollisionResponse?: boolean

    Set to false if you don't want the Ray to take collisionResponse flags into account on bodies and shapes.

    Default

    true
    
  • Optional collisionFilterGroup?: number

    collisionFilterGroup

    Default

    -1
    
  • Optional collisionFilterMask?: number

    collisionFilterMask

    Default

    -1
    
  • Optional from?: Vec3

    from

  • Optional mode?: RayMode

    mode

  • Optional result?: RaycastResult

    result

  • Optional skipBackfaces?: boolean

    If set to true, the ray skips any hits with normal.dot(rayDirection) < 0.

    Default

    false
    
  • Optional to?: Vec3

    to