Variables
Const b2Abs
b2Abs: abs = Math.abs
Const b2Acos
b2Acos: acos = Math.acos
Const b2Asin
b2Asin: asin = Math.asin
Const b2Atan2
b2Atan2: atan2 = Math.atan2
Const b2Cos
b2Cos: cos = Math.cos
Const b2IsValid
b2IsValid: isFinite = isFinite
Const b2Pow
b2Pow: pow = Math.pow
Const b2Sin
b2Sin: sin = Math.sin
Const b2Sqrt
b2Sqrt: sqrt = Math.sqrt
Const b2Vec2_zero
b2
Vec2_zero: Readonly<b2Vec2> = new b2Vec2(0, 0)
Const b2_180_over_pi
b2_180_over_pi: number = 180 / b2_pi
Const b2_aabbExtension
b2_aabbExtension: number = 0.1
Const b2_aabbMultiplier
b2_aabbMultiplier: number = 2
Const b2_angularSleepTolerance
b2_angularSleepTolerance: number = 2 / 180 * b2_pi
Const b2_angularSlop
b2_angularSlop: number = 2 / 180 * b2_pi
Const b2_barrierCollisionTime
b2_barrierCollisionTime: number = 2.5
Const b2_baumgarte
b2_baumgarte: number = 0.2
Const b2_branch
b2_branch: string = "master"
Const b2_commit
b2_commit: string = "fbf51801d80fc389d43dc46524520e89043b6faf"
Const b2_epsilon
b2_epsilon: number = 0.00001
Const b2_epsilon_sq
b2_epsilon_sq: number = (b2_epsilon * b2_epsilon)
Const b2_invalidParticleIndex
b2_invalidParticleIndex: number = -1
Const b2_linearSleepTolerance
b2_linearSleepTolerance: number = 0.01
Const b2_linearSlop
b2_linearSlop: number = 0.008
Const b2_maxAngularCorrection
b2_maxAngularCorrection: number = 8 / 180 * b2_pi
Const b2_maxFloat
b2_maxFloat: number = 1e+37
Const b2_maxLinearCorrection
b2_maxLinearCorrection: number = 0.2
Const b2_maxManifoldPoints
b2_maxManifoldPoints: number = 2
Const b2_maxParticleForce
b2_maxParticleForce: number = 0.5
Const b2_maxParticleIndex
b2_maxParticleIndex: number = 2147483647
Const b2_maxParticlePressure
b2_maxParticlePressure: number = 0.25
Const b2_maxPolygonVertices
b2_maxPolygonVertices: number = 8
Const b2_maxRotation
b2_maxRotation: number = 0.5 * b2_pi
Const b2_maxRotationSquared
b2_maxRotationSquared: number = b2_maxRotation * b2_maxRotation
Const b2_maxSubSteps
b2_maxSubSteps: number = 8
Const b2_maxTOIContacts
b2_maxTOIContacts: number = 32
Const b2_maxTranslation
b2_maxTranslation: number = 2
Const b2_maxTranslationSquared
b2_maxTranslationSquared: number = b2_maxTranslation * b2_maxTranslation
Const b2_maxTriadDistance
b2_maxTriadDistance: number = 2
Const b2_maxTriadDistanceSquared
b2_maxTriadDistanceSquared: number = (b2_maxTriadDistance * b2_maxTriadDistance)
Const b2_minParticleSystemBufferCapacity
b2_minParticleSystemBufferCapacity: number = 256
Const b2_minParticleWeight
b2_minParticleWeight: number = 1
Const b2_particleStride
b2_particleStride: number = 0.75
Const b2_pi
b2_pi: number = 3.14159265359
Const b2_pi_over_180
b2_pi_over_180: number = b2_pi / 180
Const b2_polygonRadius
b2_polygonRadius: number = 2 * b2_linearSlop
Const b2_timeToSleep
b2_timeToSleep: number = 0.5
Const b2_toiBaumgarte
b2_toiBaumgarte: number = 0.75
Const b2_two_pi
b2_two_pi: number = 2 * b2_pi
Const b2_velocityThreshold
b2_velocityThreshold: number = 1
Const b2_version
b2_
version: b2Version = new b2Version(2, 3, 2)