Class LimitAngularRange

Represents a joint limit between two angles.

Constructors

Properties

_contactDistance: number
_lower: rsx.Radian
_restitution: number
_spring: Spring
_upper: rsx.Radian

Accessors

  • get contactDistance(): number
  • Distance from the limit at which it becomes active. Allows the solver to activate earlier than the limit is reached to avoid breaking the limit.

    Returns number

  • set contactDistance(value): void
  • Parameters

    • value: number

    Returns void

  • get lower(): rsx.Radian
  • Lower angle of the limit. Must be less than #upper.

    Returns rsx.Radian

  • set lower(value): void
  • Parameters

    Returns void

  • get restitution(): number
  • Controls how do objects react when the limit is reached, values closer to zero specify non-ellastic collision, while those closer to one specify more ellastic (i.e bouncy) collision. Must be in [0, 1] range.

    Returns number

  • set restitution(value): void
  • Parameters

    • value: number

    Returns void

  • get spring(): Spring
  • Spring that controls how are the bodies pulled back towards the limit when they breach it.

    Returns Spring

  • set spring(value): void
  • Parameters

    Returns void

  • get upper(): rsx.Radian
  • Upper angle of the limit. Must be less than #lower.

    Returns rsx.Radian

  • set upper(value): void
  • Parameters

    Returns void

Methods