Options
All
  • Public
  • Public/Protected
  • All
Menu

Class b2ChainShape

Hierarchy

Index

Constructors

constructor

Properties

m_count

m_count: number = 0

m_hasNextVertex

m_hasNextVertex: boolean = false

m_hasPrevVertex

m_hasPrevVertex: boolean = false

Readonly m_nextVertex

m_nextVertex: b2Vec2 = new b2Vec2()

Readonly m_prevVertex

m_prevVertex: b2Vec2 = new b2Vec2()

m_radius

m_radius: number = 0

Readonly m_type

m_type: b2ShapeType = b2ShapeType.e_unknown

m_vertices

m_vertices: b2Vec2[] = []

Static Private ComputeAABB_s_v1

ComputeAABB_s_v1: b2Vec2 = new b2Vec2()

Static Private ComputeAABB_s_v2

ComputeAABB_s_v2: b2Vec2 = new b2Vec2()

Static Private ComputeDistance_s_edgeShape

ComputeDistance_s_edgeShape: b2EdgeShape = new b2EdgeShape()

Static Private RayCast_s_edgeShape

RayCast_s_edgeShape: b2EdgeShape = new b2EdgeShape()

Methods

Clone

ComputeAABB

  • Parameters

    Returns void

ComputeDistance

ComputeMass

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

    Returns void

ComputeSubmergedArea

Copy

CreateChain

  • Parameters

    • vertices: XY[]

    Returns b2ChainShape

  • Parameters

    • vertices: XY[]
    • count: number

    Returns b2ChainShape

  • Parameters

    • vertices: number[]

    Returns b2ChainShape

CreateLoop

  • Parameters

    • vertices: XY[]

    Returns b2ChainShape

  • Parameters

    • vertices: XY[]
    • count: number

    Returns b2ChainShape

  • Parameters

    • vertices: number[]

    Returns b2ChainShape

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

GetChildEdge

  • Parameters

    Returns void

GetType

RayCast

SetNextVertex

  • Parameters

    • nextVertex: XY

    Returns b2ChainShape

SetPrevVertex

  • Parameters

    • prevVertex: XY

    Returns b2ChainShape

SetupDistanceProxy

TestPoint

  • Parameters

    Returns boolean

Private CreateChain

  • CreateChain(vertices: (index: number) => XY, count: number): b2ChainShape
  • Parameters

    • vertices: (index: number) => XY
        • (index: number): XY
        • Parameters

          • index: number

          Returns XY

    • count: number

    Returns b2ChainShape

Private CreateLoop

  • CreateLoop(vertices: (index: number) => XY, count: number): b2ChainShape
  • Parameters

    • vertices: (index: number) => XY
        • (index: number): XY
        • Parameters

          • index: number

          Returns XY

    • count: number

    Returns b2ChainShape

Generated using TypeDoc