Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a hitobject in a beatmap.

Hierarchy

  • HitObject

Index

Constructors

  • Parameters

    • values: { comboOffset?: number; endPosition?: <internal>.Vector2; endTime?: number; newCombo?: boolean; position: <internal>.Vector2; startTime: number; type?: number }
      • Optional comboOffset?: number
      • Optional endPosition?: <internal>.Vector2
      • Optional endTime?: number
      • Optional newCombo?: boolean
      • position: <internal>.Vector2
      • startTime: number
      • Optional type?: number

    Returns <internal>.HitObject

Properties

comboOffset: number

How many combo colors to skip, if this object starts a new combo.

endPosition: <internal>.Vector2

The end position of the hitobject in osu!pixels.

endTime: number

The end time of the hitobject.

isNewCombo: boolean

Whether this hit object represents a new combo.

The position of the hitobject in osu!pixels.

The samples to be played when this hit object is hit.

In the case of sliders, this is the sample of the curve body and can be treated as the default samples for the hit object.

scale: number

The scale used to calculate stacked position and radius.

stackHeight: number

The stack height of the hitobject.

startTime: number

The start time of the hitobject in milliseconds.

The bitwise type of the hitobject (circle/slider/spinner).

Accessors

  • get duration(): number
  • The duration of the hitobject.

    Returns number

  • get radius(): number
  • The radius of the hitobject.

    Returns number

  • The stack vector to calculate offset for stacked positions.

    Returns <internal>.Vector2

  • The stacked end position of the hitobject.

    Returns <internal>.Vector2

  • The stacked position of the hitobject.

    Returns <internal>.Vector2

Methods

  • toString(): string
  • Returns the string representative of the class.

    Returns string

  • typeStr(): string
  • Returns the hitobject type.

    Returns string

Generated using TypeDoc