Options
All
  • Public
  • Public/Protected
  • All
Menu

Class b2ParticleGroup

Hierarchy

  • b2ParticleGroup

Index

Constructors

constructor

Properties

m_angularVelocity

m_angularVelocity: number = 0

Readonly m_center

m_center: b2Vec2 = new b2Vec2()

m_firstIndex

m_firstIndex: number = 0

m_groupFlags

m_groupFlags: b2ParticleGroupFlag = 0

m_inertia

m_inertia: number = 0

m_lastIndex

m_lastIndex: number = 0

Readonly m_linearVelocity

m_linearVelocity: b2Vec2 = new b2Vec2()

m_mass

m_mass: number = 0

m_next

m_next: b2ParticleGroup | null = null

m_prev

m_prev: b2ParticleGroup | null = null

m_strength

m_strength: number = 1

Readonly m_system

m_timestamp

m_timestamp: number = -1

Readonly m_transform

m_transform: b2Transform = new b2Transform()

m_userData

m_userData: any = null

Static Readonly GetLinearVelocityFromWorldPoint_s_t0

GetLinearVelocityFromWorldPoint_s_t0: b2Vec2 = new b2Vec2()

Methods

ApplyForce

  • ApplyForce(force: XY): void
  • Parameters

    • force: XY

    Returns void

ApplyLinearImpulse

  • ApplyLinearImpulse(impulse: XY): void
  • Parameters

    • impulse: XY

    Returns void

ContainsParticle

  • ContainsParticle(index: number): boolean
  • Parameters

    • index: number

    Returns boolean

DestroyParticles

  • DestroyParticles(callDestructionListener: boolean): void
  • Parameters

    • callDestructionListener: boolean

    Returns void

GetAllParticleFlags

  • Returns b2ParticleFlag

GetAngle

  • GetAngle(): number
  • Returns number

GetAngularVelocity

  • GetAngularVelocity(): number
  • Returns number

GetBufferIndex

  • GetBufferIndex(): number
  • Returns number

GetCenter

  • GetCenter(): Readonly<b2Vec2>
  • Returns Readonly<b2Vec2>

GetGroupFlags

  • Returns b2ParticleGroupFlag

GetInertia

  • GetInertia(): number
  • Returns number

GetLinearVelocity

  • GetLinearVelocity(): Readonly<b2Vec2>
  • Returns Readonly<b2Vec2>

GetLinearVelocityFromWorldPoint

  • GetLinearVelocityFromWorldPoint<T>(worldPoint: XY, out: T): T
  • Type parameters

    Parameters

    • worldPoint: XY
    • out: T

    Returns T

GetMass

  • GetMass(): number
  • Returns number

GetNext

  • Returns b2ParticleGroup | null

GetParticleCount

  • GetParticleCount(): number
  • Returns number

GetParticleSystem

  • Returns b2ParticleSystem

GetPosition

  • GetPosition(): Readonly<b2Vec2>
  • Returns Readonly<b2Vec2>

GetTransform

  • Returns Readonly<b2Transform>

GetUserData

  • GetUserData(): void
  • Returns void

SetGroupFlags

  • SetGroupFlags(flags: number): void
  • Parameters

    • flags: number

    Returns void

SetUserData

  • SetUserData(data: any): void
  • Parameters

    • data: any

    Returns void

UpdateStatistics

  • UpdateStatistics(): void
  • Returns void

Generated using TypeDoc