Options
All
  • Public
  • Public/Protected
  • All
Menu

Class b2Shape

Hierarchy

Index

Constructors

constructor

  • Parameters

    Returns b2Shape

Properties

m_radius

m_radius: number = 0

Readonly m_type

m_type: b2ShapeType = b2ShapeType.e_unknown

Methods

Abstract Clone

  • Returns b2Shape

Abstract ComputeAABB

  • Parameters

    Returns void

Abstract ComputeDistance

  • Parameters

    Returns number

Abstract ComputeMass

  • ComputeMass(massData: b2MassData, density: number): void
  • Parameters

    Returns void

Abstract ComputeSubmergedArea

  • Parameters

    Returns number

Copy

  • Parameters

    Returns b2Shape

Abstract Dump

  • Dump(log: (format: string, ...args: any[]) => void): void
  • Parameters

    • log: (format: string, ...args: any[]) => void
        • (format: string, ...args: any[]): void
        • Parameters

          • format: string
          • Rest ...args: any[]

          Returns void

    Returns void

Abstract GetChildCount

  • GetChildCount(): number
  • Returns number

GetType

  • Returns b2ShapeType

Abstract RayCast

Abstract SetupDistanceProxy

  • Parameters

    Returns void

Abstract TestPoint

  • Parameters

    Returns boolean

Generated using TypeDoc