Options
All
  • Public
  • Public/Protected
  • All
Menu

Class b2CircleShape

Hierarchy

Index

Constructors

constructor

  • Parameters

    • Default value radius: number = 0

    Returns b2CircleShape

Properties

Readonly m_p

m_p: b2Vec2 = new b2Vec2()

m_radius

m_radius: number = 0

Readonly m_type

m_type: b2ShapeType = b2ShapeType.e_unknown

Static Private ComputeAABB_s_p

ComputeAABB_s_p: b2Vec2 = new b2Vec2()

Static Private ComputeDistance_s_center

ComputeDistance_s_center: b2Vec2 = new b2Vec2()

Static Private RayCast_s_position

RayCast_s_position: b2Vec2 = new b2Vec2()

Static Private RayCast_s_r

RayCast_s_r: b2Vec2 = new b2Vec2()

Static Private RayCast_s_s

RayCast_s_s: b2Vec2 = new b2Vec2()

Static Private TestPoint_s_center

TestPoint_s_center: b2Vec2 = new b2Vec2()

Static Private TestPoint_s_d

TestPoint_s_d: b2Vec2 = new b2Vec2()

Methods

Clone

ComputeAABB

  • Parameters

    Returns void

ComputeDistance

ComputeMass

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

    Returns void

ComputeSubmergedArea

Copy

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

GetChildCount

  • GetChildCount(): number
  • Returns number

GetType

RayCast

Set

  • Set(position: XY, radius?: number): this
  • Parameters

    • position: XY
    • Default value radius: number = this.m_radius

    Returns this

SetupDistanceProxy

TestPoint

  • Parameters

    Returns boolean

Generated using TypeDoc