Options
All
  • Public
  • Public/Protected
  • All
Menu

Class b2Fixture

Hierarchy

  • b2Fixture

Index

Constructors

constructor

Properties

Readonly m_body

m_body: b2Body

m_density

m_density: number = 0

Readonly m_filter

m_filter: b2Filter = new b2Filter()

m_friction

m_friction: number = 0

m_isSensor

m_isSensor: boolean = false

m_next

m_next: b2Fixture | null = null

Readonly m_proxies

m_proxies: b2FixtureProxy[] = []

m_restitution

m_restitution: number = 0

Readonly m_shape

m_shape: b2Shape

m_userData

m_userData: any = null

Accessors

mproxyCount

  • get mproxyCount(): number
  • Returns number

Methods

ComputeDistance

  • ComputeDistance(p: b2Vec2, normal: b2Vec2, childIndex: number): number
  • Parameters

    Returns number

CreateProxies

  • CreateProxies(): void
  • Returns void

DestroyProxies

  • DestroyProxies(): void
  • Returns void

Dump

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

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

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

          Returns void

    • bodyIndex: number

    Returns void

GetAABB

  • GetAABB(childIndex: number): Readonly<b2AABB>
  • Parameters

    • childIndex: number

    Returns Readonly<b2AABB>

GetBody

  • Returns b2Body

GetDensity

  • GetDensity(): number
  • Returns number

GetFilterData

  • Returns Readonly<b2Filter>

GetFriction

  • GetFriction(): number
  • Returns number

GetMassData

  • Parameters

    • Default value massData: b2MassData = new b2MassData()

    Returns b2MassData

GetNext

  • Returns b2Fixture | null

GetRestitution

  • GetRestitution(): number
  • Returns number

GetShape

  • Returns b2Shape

GetType

  • Returns b2ShapeType

GetUserData

  • GetUserData(): any
  • Returns any

IsSensor

  • IsSensor(): boolean
  • Returns boolean

RayCast

  • Parameters

    Returns boolean

Refilter

  • Refilter(): void
  • Returns void

Reset

  • Reset(): void
  • Returns void

SetDensity

  • SetDensity(density: number): void
  • Parameters

    • density: number

    Returns void

SetFilterData

  • Parameters

    Returns void

SetFriction

  • SetFriction(friction: number): void
  • Parameters

    • friction: number

    Returns void

SetRestitution

  • SetRestitution(restitution: number): void
  • Parameters

    • restitution: number

    Returns void

SetSensor

  • SetSensor(sensor: boolean): void
  • Parameters

    • sensor: boolean

    Returns void

SetUserData

  • SetUserData(data: any): void
  • Parameters

    • data: any

    Returns void

SynchronizeProxies

  • Parameters

    Returns void

TestPoint

  • TestPoint(p: XY): boolean
  • Parameters

    Returns boolean

TouchProxies

  • TouchProxies(): void
  • Returns void

Generated using TypeDoc