q5play
Preparing search index...
Box2D
EmbindModule
Interface EmbindModule
interface
EmbindModule
{
B2_HASH_INIT
:
number
;
B2_PI
:
number
;
b2AABB
:
new
()
=>
b2AABB
;
b2BodyDef
:
{
new
()
:
b2BodyDef
;
new
(
_0
:
b2BodyDef
)
:
b2BodyDef
}
;
b2BodyEvents
:
new
()
=>
b2BodyEvents
;
b2BodyMoveEvent
:
{}
;
b2BodyType
:
{
b2_bodyTypeCount
:
b2BodyTypeValue
<
3
>
;
b2_dynamicBody
:
b2BodyTypeValue
<
2
>
;
b2_kinematicBody
:
b2BodyTypeValue
<
1
>
;
b2_staticBody
:
b2BodyTypeValue
<
0
>
;
}
;
b2Capsule
:
new
()
=>
b2Capsule
;
b2CastOutput
:
new
()
=>
b2CastOutput
;
b2ChainDef
:
new
()
=>
b2ChainDef
;
b2ChainSegment
:
new
()
=>
b2ChainSegment
;
b2Circle
:
new
()
=>
b2Circle
;
b2CollisionPlane
:
new
()
=>
b2CollisionPlane
;
b2ContactBeginTouchEvent
:
{}
;
b2ContactData
:
{}
;
b2ContactEvents
:
new
()
=>
b2ContactEvents
;
b2ContactHitEvent
:
{}
;
b2CosSin
:
new
()
=>
b2CosSin
;
b2Counters
:
new
()
=>
b2Counters
;
b2DebugDraw
:
{
new
()
:
b2DebugDraw
;
new
(
_0
:
b2DebugDraw
)
:
b2DebugDraw
}
;
b2DistanceJointDef
:
{
new
()
:
b2DistanceJointDef
;
new
(
_0
:
b2DistanceJointDef
)
:
b2DistanceJointDef
;
}
;
b2ExplosionDef
:
new
()
=>
b2ExplosionDef
;
b2Filter
:
new
()
=>
b2Filter
;
b2FilterJointDef
:
{
new
()
:
b2FilterJointDef
;
new
(
_0
:
b2FilterJointDef
)
:
b2FilterJointDef
;
}
;
b2Hull
:
new
()
=>
b2Hull
;
b2JointDef
:
new
()
=>
b2JointDef
;
b2JointEvent
:
{}
;
b2JointEvents
:
new
()
=>
b2JointEvents
;
b2JointType
:
{
b2_distanceJoint
:
b2JointTypeValue
<
0
>
;
b2_filterJoint
:
b2JointTypeValue
<
1
>
;
b2_motorJoint
:
b2JointTypeValue
<
2
>
;
b2_prismaticJoint
:
b2JointTypeValue
<
3
>
;
b2_revoluteJoint
:
b2JointTypeValue
<
4
>
;
b2_weldJoint
:
b2JointTypeValue
<
5
>
;
b2_wheelJoint
:
b2JointTypeValue
<
6
>
;
}
;
b2Manifold
:
new
()
=>
b2Manifold
;
b2ManifoldPoint
:
new
()
=>
b2ManifoldPoint
;
b2MassData
:
new
()
=>
b2MassData
;
b2Mat22
:
new
()
=>
b2Mat22
;
b2MotionLocks
:
new
()
=>
b2MotionLocks
;
b2MotorJointDef
:
{
new
()
:
b2MotorJointDef
;
new
(
_0
:
b2MotorJointDef
)
:
b2MotorJointDef
;
}
;
b2Plane
:
new
()
=>
b2Plane
;
b2PlaneSolverResult
:
new
()
=>
b2PlaneSolverResult
;
b2Polygon
:
{
GetMaxVertices
()
:
number
;
new
()
:
b2Polygon
}
;
b2PrismaticJointDef
:
{
new
()
:
b2PrismaticJointDef
;
new
(
_0
:
b2PrismaticJointDef
)
:
b2PrismaticJointDef
;
}
;
b2Profile
:
new
()
=>
b2Profile
;
b2QueryFilter
:
new
()
=>
b2QueryFilter
;
b2RayCallbackResult
:
new
()
=>
b2RayCallbackResult
;
b2RayCastInput
:
new
()
=>
b2RayCastInput
;
b2RayResult
:
new
()
=>
b2RayResult
;
b2RevoluteJointDef
:
{
new
()
:
b2RevoluteJointDef
;
new
(
_0
:
b2RevoluteJointDef
)
:
b2RevoluteJointDef
;
}
;
b2Rot
:
new
()
=>
b2Rot
;
b2Rot_identity
:
b2Rot
;
b2Segment
:
new
()
=>
b2Segment
;
b2SensorEvents
:
new
()
=>
b2SensorEvents
;
b2ShapeDef
:
new
()
=>
b2ShapeDef
;
b2ShapeProxy
:
new
()
=>
b2ShapeProxy
;
b2ShapeType
:
{
b2_capsuleShape
:
b2ShapeTypeValue
<
1
>
;
b2_chainSegmentShape
:
b2ShapeTypeValue
<
4
>
;
b2_circleShape
:
b2ShapeTypeValue
<
0
>
;
b2_polygonShape
:
b2ShapeTypeValue
<
3
>
;
b2_segmentShape
:
b2ShapeTypeValue
<
2
>
;
b2_shapeTypeCount
:
b2ShapeTypeValue
<
5
>
;
}
;
b2SurfaceMaterial
:
new
()
=>
b2SurfaceMaterial
;
b2Transform
:
new
()
=>
b2Transform
;
b2Vec2
:
{
new
()
:
b2Vec2
;
new
(
_0
:
number
,
_1
:
number
)
:
b2Vec2
}
;
b2Vec2_zero
:
b2Vec2
;
b2WeldJointDef
:
{
new
()
:
b2WeldJointDef
;
new
(
_0
:
b2WeldJointDef
)
:
b2WeldJointDef
;
}
;
b2WheelJointDef
:
{
new
()
:
b2WheelJointDef
;
new
(
_0
:
b2WheelJointDef
)
:
b2WheelJointDef
;
}
;
b2WorldDef
:
{
new
()
:
b2WorldDef
;
new
(
_0
:
b2WorldDef
)
:
b2WorldDef
}
;
BasicBodyInterface
:
{}
;
BasicChainInterface
:
{}
;
BasicDistanceJointInterface
:
{}
;
BasicJointInterface
:
{}
;
BasicMotorJointInterface
:
{}
;
BasicPrismaticJointInterface
:
{}
;
BasicRevoluteJointInterface
:
{}
;
BasicShapeInterface
:
{}
;
BasicWeldJointInterface
:
{}
;
BasicWheelJointInterface
:
{}
;
BasicWorldInterface
:
{}
;
Body
:
new
()
=>
Body
;
BodyConstRef
:
{}
;
BodyRef
:
{}
;
Chain
:
new
()
=>
Chain
;
ChainConstRef
:
{}
;
ChainRef
:
{}
;
DebugDrawCommandBuffer
:
{
new
()
:
DebugDrawCommandBuffer
;
new
(
_0
:
number
)
:
DebugDrawCommandBuffer
;
}
;
DebugDrawCommandType
:
{
e_circle
:
DebugDrawCommandTypeValue
<
2
>
;
e_line
:
DebugDrawCommandTypeValue
<
5
>
;
e_point
:
DebugDrawCommandTypeValue
<
7
>
;
e_polygon
:
DebugDrawCommandTypeValue
<
0
>
;
e_solidCapsule
:
DebugDrawCommandTypeValue
<
4
>
;
e_solidCircle
:
DebugDrawCommandTypeValue
<
3
>
;
e_solidPolygon
:
DebugDrawCommandTypeValue
<
1
>
;
e_string
:
DebugDrawCommandTypeValue
<
8
>
;
e_transform
:
DebugDrawCommandTypeValue
<
6
>
;
}
;
DistanceJoint
:
new
()
=>
DistanceJoint
;
DistanceJointConstRef
:
{}
;
DistanceJointRef
:
{}
;
Joint
:
new
()
=>
Joint
;
JointConstRef
:
{}
;
JointRef
:
{}
;
MotorJoint
:
new
()
=>
MotorJoint
;
MotorJointConstRef
:
{}
;
MotorJointRef
:
{}
;
PrismaticJoint
:
new
()
=>
PrismaticJoint
;
PrismaticJointConstRef
:
{}
;
PrismaticJointRef
:
{}
;
RevoluteJoint
:
new
()
=>
RevoluteJoint
;
RevoluteJointConstRef
:
{}
;
RevoluteJointRef
:
{}
;
Shape
:
new
()
=>
Shape
;
TaskSystem
:
new
(
_0
:
number
)
=>
TaskSystem
;
WeldJoint
:
new
()
=>
WeldJoint
;
WeldJointConstRef
:
{}
;
WeldJointRef
:
{}
;
WheelJoint
:
new
()
=>
WheelJoint
;
WheelJointConstRef
:
{}
;
WheelJointRef
:
{}
;
World
:
{
new
()
:
World
;
new
(
_0
:
b2WorldDef
)
:
World
}
;
WorldConstRef
:
{}
;
WorldRef
:
{}
;
B2_ID_EQUALS
(
_0
:
any
,
_1
:
any
)
:
boolean
;
b2AABB_Center
(
_0
:
b2AABB
)
:
b2Vec2
;
b2AABB_Contains
(
_0
:
b2AABB
,
_1
:
b2AABB
)
:
boolean
;
b2AABB_Extents
(
_0
:
b2AABB
)
:
b2Vec2
;
b2AABB_Union
(
_0
:
b2AABB
,
_1
:
b2AABB
)
:
b2AABB
;
b2Abs
(
_0
:
b2Vec2
)
:
b2Vec2
;
b2Add
(
_0
:
b2Vec2
,
_1
:
b2Vec2
)
:
b2Vec2
;
b2Body_ApplyAngularImpulse
(
_0
:
b2BodyId
,
_1
:
number
,
_2
:
boolean
)
:
void
;
b2Body_ApplyForce
(
_0
:
b2BodyId
,
_1
:
b2Vec2
,
_2
:
b2Vec2
,
_3
:
boolean
)
:
void
;
b2Body_ApplyForceToCenter
(
_0
:
b2BodyId
,
_1
:
b2Vec2
,
_2
:
boolean
)
:
void
;
b2Body_ApplyLinearImpulse
(
_0
:
b2BodyId
,
_1
:
b2Vec2
,
_2
:
b2Vec2
,
_3
:
boolean
,
)
:
void
;
b2Body_ApplyLinearImpulseToCenter
(
_0
:
b2BodyId
,
_1
:
b2Vec2
,
_2
:
boolean
,
)
:
void
;
b2Body_ApplyMassFromShapes
(
_0
:
b2BodyId
)
:
void
;
b2Body_ApplyTorque
(
_0
:
b2BodyId
,
_1
:
number
,
_2
:
boolean
)
:
void
;
b2Body_ComputeAABB
(
_0
:
b2BodyId
)
:
b2AABB
;
b2Body_Disable
(
_0
:
b2BodyId
)
:
void
;
b2Body_Enable
(
_0
:
b2BodyId
)
:
void
;
b2Body_EnableContactEvents
(
_0
:
b2BodyId
,
_1
:
boolean
)
:
void
;
b2Body_EnableHitEvents
(
_0
:
b2BodyId
,
_1
:
boolean
)
:
void
;
b2Body_EnableSleep
(
_0
:
b2BodyId
,
_1
:
boolean
)
:
void
;
b2Body_GetAngularDamping
(
_0
:
b2BodyId
)
:
number
;
b2Body_GetAngularVelocity
(
_0
:
b2BodyId
)
:
number
;
b2Body_GetContactCapacity
(
_0
:
b2BodyId
)
:
number
;
b2Body_GetContactData
(
_0
:
b2BodyId
,
_1
:
number
)
:
any
;
b2Body_GetGravityScale
(
_0
:
b2BodyId
)
:
number
;
b2Body_GetJointCount
(
_0
:
b2BodyId
)
:
number
;
b2Body_GetJoints
(
_0
:
b2BodyId
)
:
any
;
b2Body_GetLinearDamping
(
_0
:
b2BodyId
)
:
number
;
b2Body_GetLinearVelocity
(
_0
:
b2BodyId
)
:
b2Vec2
;
b2Body_GetLocalCenterOfMass
(
_0
:
b2BodyId
)
:
b2Vec2
;
b2Body_GetLocalPoint
(
_0
:
b2BodyId
,
_1
:
b2Vec2
)
:
b2Vec2
;
b2Body_GetLocalPointVelocity
(
_0
:
b2BodyId
,
_1
:
b2Vec2
)
:
b2Vec2
;
b2Body_GetLocalVector
(
_0
:
b2BodyId
,
_1
:
b2Vec2
)
:
b2Vec2
;
b2Body_GetMass
(
_0
:
b2BodyId
)
:
number
;
b2Body_GetMassData
(
_0
:
b2BodyId
)
:
b2MassData
;
b2Body_GetMotionLocks
(
_0
:
b2BodyId
)
:
b2MotionLocks
;
b2Body_GetPointer
(
_0
:
b2BodyId
)
:
any
;
b2Body_GetPosition
(
_0
:
b2BodyId
)
:
b2Vec2
;
b2Body_GetRotation
(
_0
:
b2BodyId
)
:
b2Rot
;
b2Body_GetRotationalInertia
(
_0
:
b2BodyId
)
:
number
;
b2Body_GetShapeCount
(
_0
:
b2BodyId
)
:
number
;
b2Body_GetShapes
(
_0
:
b2BodyId
,
_1
:
number
)
:
any
;
b2Body_GetSleepThreshold
(
_0
:
b2BodyId
)
:
number
;
b2Body_GetTransform
(
_0
:
b2BodyId
)
:
b2Transform
;
b2Body_GetType
(
_0
:
b2BodyId
)
:
b2BodyType
;
b2Body_GetWorld
(
_0
:
b2BodyId
)
:
b2WorldId
;
b2Body_GetWorldCenterOfMass
(
_0
:
b2BodyId
)
:
b2Vec2
;
b2Body_GetWorldPoint
(
_0
:
b2BodyId
,
_1
:
b2Vec2
)
:
b2Vec2
;
b2Body_GetWorldPointVelocity
(
_0
:
b2BodyId
,
_1
:
b2Vec2
)
:
b2Vec2
;
b2Body_GetWorldVector
(
_0
:
b2BodyId
,
_1
:
b2Vec2
)
:
b2Vec2
;
b2Body_IsAwake
(
_0
:
b2BodyId
)
:
boolean
;
b2Body_IsBullet
(
_0
:
b2BodyId
)
:
boolean
;
b2Body_IsEnabled
(
_0
:
b2BodyId
)
:
boolean
;
b2Body_IsSleepEnabled
(
_0
:
b2BodyId
)
:
boolean
;
b2Body_IsValid
(
_0
:
b2BodyId
)
:
boolean
;
b2Body_SetAngularDamping
(
_0
:
b2BodyId
,
_1
:
number
)
:
void
;
b2Body_SetAngularVelocity
(
_0
:
b2BodyId
,
_1
:
number
)
:
void
;
b2Body_SetAwake
(
_0
:
b2BodyId
,
_1
:
boolean
)
:
void
;
b2Body_SetBullet
(
_0
:
b2BodyId
,
_1
:
boolean
)
:
void
;
b2Body_SetGravityScale
(
_0
:
b2BodyId
,
_1
:
number
)
:
void
;
b2Body_SetLinearDamping
(
_0
:
b2BodyId
,
_1
:
number
)
:
void
;
b2Body_SetLinearVelocity
(
_0
:
b2BodyId
,
_1
:
b2Vec2
)
:
void
;
b2Body_SetMassData
(
_0
:
b2BodyId
,
_1
:
b2MassData
)
:
void
;
b2Body_SetMotionLocks
(
_0
:
b2BodyId
,
_1
:
b2MotionLocks
)
:
void
;
b2Body_SetSleepThreshold
(
_0
:
b2BodyId
,
_1
:
number
)
:
void
;
b2Body_SetTargetTransform
(
_0
:
b2BodyId
,
_1
:
b2Transform
,
_2
:
number
)
:
void
;
b2Body_SetTransform
(
_0
:
b2BodyId
,
_1
:
b2Vec2
,
_2
:
b2Rot
)
:
void
;
b2Body_SetType
(
_0
:
b2BodyId
,
_1
:
b2BodyType
)
:
void
;
b2Chain_GetSegmentCount
(
_0
:
b2ChainId
)
:
number
;
b2Chain_GetSegments
(
_0
:
b2ChainId
,
_1
:
number
)
:
any
;
b2Chain_IsValid
(
_0
:
b2ChainId
)
:
boolean
;
b2Clamp
(
_0
:
b2Vec2
,
_1
:
b2Vec2
,
_2
:
b2Vec2
)
:
b2Vec2
;
b2ClipVector
(
_0
:
b2Vec2
,
_1
:
any
)
:
b2Vec2
;
b2ComputeAngularVelocity
(
_0
:
b2Rot
,
_1
:
b2Rot
,
_2
:
number
)
:
number
;
b2ComputeCapsuleAABB
(
_0
:
b2Capsule
|
null
,
_1
:
b2Transform
)
:
b2AABB
;
b2ComputeCapsuleMass
(
_0
:
b2Capsule
|
null
,
_1
:
number
)
:
b2MassData
;
b2ComputeCircleAABB
(
_0
:
b2Circle
|
null
,
_1
:
b2Transform
)
:
b2AABB
;
b2ComputeCircleMass
(
_0
:
b2Circle
|
null
,
_1
:
number
)
:
b2MassData
;
b2ComputeHull
(
_0
:
any
)
:
b2Hull
;
b2ComputePolygonAABB
(
_0
:
b2Polygon
|
null
,
_1
:
b2Transform
)
:
b2AABB
;
b2ComputePolygonMass
(
_0
:
b2Polygon
|
null
,
_1
:
number
)
:
b2MassData
;
b2ComputeSegmentAABB
(
_0
:
b2Segment
|
null
,
_1
:
b2Transform
)
:
b2AABB
;
b2CreateBody
(
_0
:
b2WorldId
,
_1
:
b2BodyDef
|
null
)
:
b2BodyId
;
b2CreateCapsuleShape
(
_0
:
b2BodyId
,
_1
:
b2ShapeDef
|
null
,
_2
:
b2Capsule
|
null
,
)
:
b2ShapeId
;
b2CreateChain
(
_0
:
b2BodyId
,
_1
:
b2ChainDef
|
null
)
:
b2ChainId
;
b2CreateCircleShape
(
_0
:
b2BodyId
,
_1
:
b2ShapeDef
|
null
,
_2
:
b2Circle
|
null
,
)
:
b2ShapeId
;
b2CreateDistanceJoint
(
_0
:
b2WorldId
,
_1
:
b2DistanceJointDef
|
null
,
)
:
b2JointId
;
b2CreateFilterJoint
(
_0
:
b2WorldId
,
_1
:
b2FilterJointDef
|
null
)
:
b2JointId
;
b2CreateMotorJoint
(
_0
:
b2WorldId
,
_1
:
b2MotorJointDef
|
null
)
:
b2JointId
;
b2CreatePolygonShape
(
_0
:
b2BodyId
,
_1
:
b2ShapeDef
|
null
,
_2
:
b2Polygon
|
null
,
)
:
b2ShapeId
;
b2CreatePrismaticJoint
(
_0
:
b2WorldId
,
_1
:
b2PrismaticJointDef
|
null
,
)
:
b2JointId
;
b2CreateRevoluteJoint
(
_0
:
b2WorldId
,
_1
:
b2RevoluteJointDef
|
null
,
)
:
b2JointId
;
b2CreateSegmentShape
(
_0
:
b2BodyId
,
_1
:
b2ShapeDef
|
null
,
_2
:
b2Segment
|
null
,
)
:
b2ShapeId
;
b2CreateThreadedWorld
(
_0
:
b2WorldDef
,
_1
:
TaskSystem
)
:
b2WorldId
;
b2CreateWeldJoint
(
_0
:
b2WorldId
,
_1
:
b2WeldJointDef
|
null
)
:
b2JointId
;
b2CreateWheelJoint
(
_0
:
b2WorldId
,
_1
:
b2WheelJointDef
|
null
)
:
b2JointId
;
b2CreateWorld
(
_0
:
b2WorldDef
|
null
)
:
b2WorldId
;
b2Cross
(
_0
:
b2Vec2
,
_1
:
b2Vec2
)
:
number
;
b2CrossSV
(
_0
:
number
,
_1
:
b2Vec2
)
:
b2Vec2
;
b2CrossVS
(
_0
:
b2Vec2
,
_1
:
number
)
:
b2Vec2
;
b2DefaultBodyDef
()
:
b2BodyDef
;
b2DefaultChainDef
()
:
b2ChainDef
;
b2DefaultDebugDraw
()
:
b2DebugDraw
;
b2DefaultDistanceJointDef
()
:
b2DistanceJointDef
;
b2DefaultExplosionDef
()
:
b2ExplosionDef
;
b2DefaultFilterJointDef
()
:
b2FilterJointDef
;
b2DefaultMotorJointDef
()
:
b2MotorJointDef
;
b2DefaultPrismaticJointDef
()
:
b2PrismaticJointDef
;
b2DefaultQueryFilter
()
:
b2QueryFilter
;
b2DefaultRevoluteJointDef
()
:
b2RevoluteJointDef
;
b2DefaultShapeDef
()
:
b2ShapeDef
;
b2DefaultSurfaceMaterial
()
:
b2SurfaceMaterial
;
b2DefaultWeldJointDef
()
:
b2WeldJointDef
;
b2DefaultWheelJointDef
()
:
b2WheelJointDef
;
b2DefaultWorldDef
()
:
b2WorldDef
;
b2DestroyBody
(
_0
:
b2BodyId
)
:
void
;
b2DestroyChain
(
_0
:
b2ChainId
)
:
void
;
b2DestroyJoint
(
_0
:
b2JointId
,
_1
:
boolean
)
:
void
;
b2DestroyShape
(
_0
:
b2ShapeId
,
_1
:
boolean
)
:
void
;
b2DestroyWorld
(
_0
:
b2WorldId
)
:
void
;
b2Distance
(
_0
:
b2Vec2
,
_1
:
b2Vec2
)
:
number
;
b2DistanceJoint_EnableLimit
(
_0
:
b2JointId
,
_1
:
boolean
)
:
void
;
b2DistanceJoint_EnableMotor
(
_0
:
b2JointId
,
_1
:
boolean
)
:
void
;
b2DistanceJoint_EnableSpring
(
_0
:
b2JointId
,
_1
:
boolean
)
:
void
;
b2DistanceJoint_GetCurrentLength
(
_0
:
b2JointId
)
:
number
;
b2DistanceJoint_GetLength
(
_0
:
b2JointId
)
:
number
;
b2DistanceJoint_GetMaxLength
(
_0
:
b2JointId
)
:
number
;
b2DistanceJoint_GetMaxMotorForce
(
_0
:
b2JointId
)
:
number
;
b2DistanceJoint_GetMinLength
(
_0
:
b2JointId
)
:
number
;
b2DistanceJoint_GetMotorForce
(
_0
:
b2JointId
)
:
number
;
b2DistanceJoint_GetMotorSpeed
(
_0
:
b2JointId
)
:
number
;
b2DistanceJoint_GetSpringDampingRatio
(
_0
:
b2JointId
)
:
number
;
b2DistanceJoint_GetSpringHertz
(
_0
:
b2JointId
)
:
number
;
b2DistanceJoint_IsLimitEnabled
(
_0
:
b2JointId
)
:
boolean
;
b2DistanceJoint_IsMotorEnabled
(
_0
:
b2JointId
)
:
boolean
;
b2DistanceJoint_IsSpringEnabled
(
_0
:
b2JointId
)
:
boolean
;
b2DistanceJoint_SetLength
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2DistanceJoint_SetLengthRange
(
_0
:
b2JointId
,
_1
:
number
,
_2
:
number
)
:
void
;
b2DistanceJoint_SetMaxMotorForce
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2DistanceJoint_SetMotorSpeed
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2DistanceJoint_SetSpringDampingRatio
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2DistanceJoint_SetSpringHertz
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2DistanceSquared
(
_0
:
b2Vec2
,
_1
:
b2Vec2
)
:
number
;
b2Dot
(
_0
:
b2Vec2
,
_1
:
b2Vec2
)
:
number
;
b2GetInverse22
(
_0
:
b2Mat22
)
:
b2Mat22
;
b2Hash
(
_0
:
number
,
_1
:
any
)
:
number
;
b2IntegrateRotation
(
_0
:
b2Rot
,
_1
:
number
)
:
b2Rot
;
b2InvMulRot
(
_0
:
b2Rot
,
_1
:
b2Rot
)
:
b2Rot
;
b2InvMulTransforms
(
_0
:
b2Transform
,
_1
:
b2Transform
)
:
b2Transform
;
b2InvRotateVector
(
_0
:
b2Rot
,
_1
:
b2Vec2
)
:
b2Vec2
;
b2InvTransformPoint
(
_0
:
b2Transform
,
_1
:
b2Vec2
)
:
b2Vec2
;
b2IsNormalized
(
_0
:
b2Vec2
)
:
boolean
;
b2IsValidPlane
(
_0
:
b2Plane
)
:
boolean
;
b2IsValidRay
(
_0
:
b2RayCastInput
|
null
)
:
boolean
;
b2Joint_GetBodyA
(
_0
:
b2JointId
)
:
b2BodyId
;
b2Joint_GetBodyB
(
_0
:
b2JointId
)
:
b2BodyId
;
b2Joint_GetCollideConnected
(
_0
:
b2JointId
)
:
boolean
;
b2Joint_GetConstraintForce
(
_0
:
b2JointId
)
:
b2Vec2
;
b2Joint_GetConstraintTorque
(
_0
:
b2JointId
)
:
number
;
b2Joint_GetForceThreshold
(
_0
:
b2JointId
)
:
number
;
b2Joint_GetLocalFrameA
(
_0
:
b2JointId
)
:
b2Transform
;
b2Joint_GetLocalFrameB
(
_0
:
b2JointId
)
:
b2Transform
;
b2Joint_GetPointer
(
_0
:
b2JointId
)
:
any
;
b2Joint_GetTorqueThreshold
(
_0
:
b2JointId
)
:
number
;
b2Joint_GetType
(
_0
:
b2JointId
)
:
b2JointType
;
b2Joint_GetWorld
(
_0
:
b2JointId
)
:
b2WorldId
;
b2Joint_IsValid
(
_0
:
b2JointId
)
:
boolean
;
b2Joint_SetCollideConnected
(
_0
:
b2JointId
,
_1
:
boolean
)
:
void
;
b2Joint_SetForceThreshold
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2Joint_SetLocalFrameA
(
_0
:
b2JointId
,
_1
:
b2Transform
)
:
void
;
b2Joint_SetLocalFrameB
(
_0
:
b2JointId
,
_1
:
b2Transform
)
:
void
;
b2Joint_SetTorqueThreshold
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2Joint_WakeBodies
(
_0
:
b2JointId
)
:
void
;
b2LeftPerp
(
_0
:
b2Vec2
)
:
b2Vec2
;
b2Length
(
_0
:
b2Vec2
)
:
number
;
b2LengthSquared
(
_0
:
b2Vec2
)
:
number
;
b2Lerp
(
_0
:
b2Vec2
,
_1
:
b2Vec2
,
_2
:
number
)
:
b2Vec2
;
b2MakeBox
(
_0
:
number
,
_1
:
number
)
:
b2Polygon
;
b2MakeOffsetBox
(
_0
:
number
,
_1
:
number
,
_2
:
b2Vec2
,
_3
:
b2Rot
)
:
b2Polygon
;
b2MakeOffsetPolygon
(
_0
:
b2Hull
|
null
,
_1
:
b2Vec2
,
_2
:
b2Rot
)
:
b2Polygon
;
b2MakeOffsetProxy
(
_0
:
b2Vec2
|
null
,
_1
:
number
,
_2
:
number
,
_3
:
b2Vec2
,
_4
:
b2Rot
,
)
:
b2ShapeProxy
;
b2MakeOffsetRoundedBox
(
_0
:
number
,
_1
:
number
,
_2
:
b2Vec2
,
_3
:
b2Rot
,
_4
:
number
,
)
:
b2Polygon
;
b2MakeOffsetRoundedPolygon
(
_0
:
b2Hull
|
null
,
_1
:
b2Vec2
,
_2
:
b2Rot
,
_3
:
number
,
)
:
b2Polygon
;
b2MakePolygon
(
_0
:
b2Hull
|
null
,
_1
:
number
)
:
b2Polygon
;
b2MakeProxy
(
_0
:
b2Vec2
|
null
,
_1
:
number
,
_2
:
number
)
:
b2ShapeProxy
;
b2MakeRot
(
_0
:
number
)
:
b2Rot
;
b2MakeRoundedBox
(
_0
:
number
,
_1
:
number
,
_2
:
number
)
:
b2Polygon
;
b2MakeSquare
(
_0
:
number
)
:
b2Polygon
;
b2Max
(
_0
:
b2Vec2
,
_1
:
b2Vec2
)
:
b2Vec2
;
b2MaxFloat
(
_0
:
number
,
_1
:
number
)
:
number
;
b2Min
(
_0
:
b2Vec2
,
_1
:
b2Vec2
)
:
b2Vec2
;
b2MotorJoint_GetAngularDampingRatio
(
_0
:
b2JointId
)
:
number
;
b2MotorJoint_GetAngularHertz
(
_0
:
b2JointId
)
:
number
;
b2MotorJoint_GetAngularVelocity
(
_0
:
b2JointId
)
:
number
;
b2MotorJoint_GetLinearDampingRatio
(
_0
:
b2JointId
)
:
number
;
b2MotorJoint_GetLinearHertz
(
_0
:
b2JointId
)
:
number
;
b2MotorJoint_GetLinearVelocity
(
_0
:
b2JointId
)
:
b2Vec2
;
b2MotorJoint_GetMaxSpringForce
(
_0
:
b2JointId
)
:
number
;
b2MotorJoint_GetMaxSpringTorque
(
_0
:
b2JointId
)
:
number
;
b2MotorJoint_GetMaxVelocityForce
(
_0
:
b2JointId
)
:
number
;
b2MotorJoint_GetMaxVelocityTorque
(
_0
:
b2JointId
)
:
number
;
b2MotorJoint_SetAngularDampingRatio
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2MotorJoint_SetAngularHertz
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2MotorJoint_SetAngularVelocity
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2MotorJoint_SetLinearDampingRatio
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2MotorJoint_SetLinearHertz
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2MotorJoint_SetLinearVelocity
(
_0
:
b2JointId
,
_1
:
b2Vec2
)
:
void
;
b2MotorJoint_SetMaxSpringForce
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2MotorJoint_SetMaxSpringTorque
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2MotorJoint_SetMaxVelocityForce
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2MotorJoint_SetMaxVelocityTorque
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2Mul
(
_0
:
b2Vec2
,
_1
:
b2Vec2
)
:
b2Vec2
;
b2MulAdd
(
_0
:
b2Vec2
,
_1
:
number
,
_2
:
b2Vec2
)
:
b2Vec2
;
b2MulMV
(
_0
:
b2Mat22
,
_1
:
b2Vec2
)
:
b2Vec2
;
b2MulRot
(
_0
:
b2Rot
,
_1
:
b2Rot
)
:
b2Rot
;
b2MulSub
(
_0
:
b2Vec2
,
_1
:
number
,
_2
:
b2Vec2
)
:
b2Vec2
;
b2MulSV
(
_0
:
number
,
_1
:
b2Vec2
)
:
b2Vec2
;
b2MulTransforms
(
_0
:
b2Transform
,
_1
:
b2Transform
)
:
b2Transform
;
b2Neg
(
_0
:
b2Vec2
)
:
b2Vec2
;
b2NLerp
(
_0
:
b2Rot
,
_1
:
b2Rot
,
_2
:
number
)
:
b2Rot
;
b2Normalize
(
_0
:
b2Vec2
)
:
b2Vec2
;
b2NormalizeRot
(
_0
:
b2Rot
)
:
b2Rot
;
b2PointInCapsule
(
_0
:
b2Capsule
|
null
,
_1
:
b2Vec2
)
:
boolean
;
b2PointInCircle
(
_0
:
b2Circle
|
null
,
_1
:
b2Vec2
)
:
boolean
;
b2PointInPolygon
(
_0
:
b2Polygon
|
null
,
_1
:
b2Vec2
)
:
boolean
;
b2PrismaticJoint_EnableLimit
(
_0
:
b2JointId
,
_1
:
boolean
)
:
void
;
b2PrismaticJoint_EnableMotor
(
_0
:
b2JointId
,
_1
:
boolean
)
:
void
;
b2PrismaticJoint_EnableSpring
(
_0
:
b2JointId
,
_1
:
boolean
)
:
void
;
b2PrismaticJoint_GetLowerLimit
(
_0
:
b2JointId
)
:
number
;
b2PrismaticJoint_GetMaxMotorForce
(
_0
:
b2JointId
)
:
number
;
b2PrismaticJoint_GetMotorForce
(
_0
:
b2JointId
)
:
number
;
b2PrismaticJoint_GetMotorSpeed
(
_0
:
b2JointId
)
:
number
;
b2PrismaticJoint_GetSpeed
(
_0
:
b2JointId
)
:
number
;
b2PrismaticJoint_GetSpringDampingRatio
(
_0
:
b2JointId
)
:
number
;
b2PrismaticJoint_GetSpringHertz
(
_0
:
b2JointId
)
:
number
;
b2PrismaticJoint_GetTranslation
(
_0
:
b2JointId
)
:
number
;
b2PrismaticJoint_GetUpperLimit
(
_0
:
b2JointId
)
:
number
;
b2PrismaticJoint_IsLimitEnabled
(
_0
:
b2JointId
)
:
boolean
;
b2PrismaticJoint_IsMotorEnabled
(
_0
:
b2JointId
)
:
boolean
;
b2PrismaticJoint_IsSpringEnabled
(
_0
:
b2JointId
)
:
boolean
;
b2PrismaticJoint_SetLimits
(
_0
:
b2JointId
,
_1
:
number
,
_2
:
number
)
:
void
;
b2PrismaticJoint_SetMaxMotorForce
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2PrismaticJoint_SetMotorSpeed
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2PrismaticJoint_SetSpringDampingRatio
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2PrismaticJoint_SetSpringHertz
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2RelativeAngle
(
_0
:
b2Rot
,
_1
:
b2Rot
)
:
number
;
b2RevoluteJoint_EnableLimit
(
_0
:
b2JointId
,
_1
:
boolean
)
:
void
;
b2RevoluteJoint_EnableMotor
(
_0
:
b2JointId
,
_1
:
boolean
)
:
void
;
b2RevoluteJoint_EnableSpring
(
_0
:
b2JointId
,
_1
:
boolean
)
:
void
;
b2RevoluteJoint_GetAngle
(
_0
:
b2JointId
)
:
number
;
b2RevoluteJoint_GetLowerLimit
(
_0
:
b2JointId
)
:
number
;
b2RevoluteJoint_GetMaxMotorTorque
(
_0
:
b2JointId
)
:
number
;
b2RevoluteJoint_GetMotorSpeed
(
_0
:
b2JointId
)
:
number
;
b2RevoluteJoint_GetMotorTorque
(
_0
:
b2JointId
)
:
number
;
b2RevoluteJoint_GetSpringDampingRatio
(
_0
:
b2JointId
)
:
number
;
b2RevoluteJoint_GetSpringHertz
(
_0
:
b2JointId
)
:
number
;
b2RevoluteJoint_GetUpperLimit
(
_0
:
b2JointId
)
:
number
;
b2RevoluteJoint_IsLimitEnabled
(
_0
:
b2JointId
)
:
boolean
;
b2RevoluteJoint_IsMotorEnabled
(
_0
:
b2JointId
)
:
boolean
;
b2RevoluteJoint_IsSpringEnabled
(
_0
:
b2JointId
)
:
boolean
;
b2RevoluteJoint_SetLimits
(
_0
:
b2JointId
,
_1
:
number
,
_2
:
number
)
:
void
;
b2RevoluteJoint_SetMaxMotorTorque
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2RevoluteJoint_SetMotorSpeed
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2RevoluteJoint_SetSpringDampingRatio
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2RevoluteJoint_SetSpringHertz
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2RightPerp
(
_0
:
b2Vec2
)
:
b2Vec2
;
b2Rot_GetAngle
(
_0
:
b2Rot
)
:
number
;
b2Rot_GetXAxis
(
_0
:
b2Rot
)
:
b2Vec2
;
b2Rot_GetYAxis
(
_0
:
b2Rot
)
:
b2Vec2
;
b2RotateVector
(
_0
:
b2Rot
,
_1
:
b2Vec2
)
:
b2Vec2
;
b2Shape_ApplyWind
(
_0
:
b2ShapeId
,
_1
:
b2Vec2
,
_2
:
number
,
_3
:
number
,
_4
:
boolean
,
)
:
void
;
b2Shape_AreContactEventsEnabled
(
_0
:
b2ShapeId
)
:
boolean
;
b2Shape_AreHitEventsEnabled
(
_0
:
b2ShapeId
)
:
boolean
;
b2Shape_ArePreSolveEventsEnabled
(
_0
:
b2ShapeId
)
:
boolean
;
b2Shape_AreSensorEventsEnabled
(
_0
:
b2ShapeId
)
:
boolean
;
b2Shape_ComputeMassData
(
_0
:
b2ShapeId
)
:
b2MassData
;
b2Shape_EnableContactEvents
(
_0
:
b2ShapeId
,
_1
:
boolean
)
:
void
;
b2Shape_EnableHitEvents
(
_0
:
b2ShapeId
,
_1
:
boolean
)
:
void
;
b2Shape_EnablePreSolveEvents
(
_0
:
b2ShapeId
,
_1
:
boolean
)
:
void
;
b2Shape_EnableSensorEvents
(
_0
:
b2ShapeId
,
_1
:
boolean
)
:
void
;
b2Shape_GetAABB
(
_0
:
b2ShapeId
)
:
b2AABB
;
b2Shape_GetBody
(
_0
:
b2ShapeId
)
:
b2BodyId
;
b2Shape_GetCapsule
(
_0
:
b2ShapeId
)
:
b2Capsule
;
b2Shape_GetChainSegment
(
_0
:
b2ShapeId
)
:
b2ChainSegment
;
b2Shape_GetCircle
(
_0
:
b2ShapeId
)
:
b2Circle
;
b2Shape_GetClosestPoint
(
_0
:
b2ShapeId
,
_1
:
b2Vec2
)
:
b2Vec2
;
b2Shape_GetContactCapacity
(
_0
:
b2ShapeId
)
:
number
;
b2Shape_GetContactData
(
_0
:
b2ShapeId
,
_1
:
number
)
:
any
;
b2Shape_GetDensity
(
_0
:
b2ShapeId
)
:
number
;
b2Shape_GetFilter
(
_0
:
b2ShapeId
)
:
b2Filter
;
b2Shape_GetFriction
(
_0
:
b2ShapeId
)
:
number
;
b2Shape_GetParentChain
(
_0
:
b2ShapeId
)
:
b2ChainId
;
b2Shape_GetPointer
(
_0
:
b2ShapeId
)
:
any
;
b2Shape_GetPolygon
(
_0
:
b2ShapeId
)
:
b2Polygon
;
b2Shape_GetRestitution
(
_0
:
b2ShapeId
)
:
number
;
b2Shape_GetSegment
(
_0
:
b2ShapeId
)
:
b2Segment
;
b2Shape_GetSensorCapacity
(
_0
:
b2ShapeId
)
:
number
;
b2Shape_GetSensorData
(
_0
:
b2ShapeId
,
_1
:
number
)
:
any
;
b2Shape_GetSurfaceMaterial
(
_0
:
b2ShapeId
)
:
b2SurfaceMaterial
;
b2Shape_GetType
(
_0
:
b2ShapeId
)
:
b2ShapeType
;
b2Shape_GetWorld
(
_0
:
b2ShapeId
)
:
b2WorldId
;
b2Shape_IsSensor
(
_0
:
b2ShapeId
)
:
boolean
;
b2Shape_IsValid
(
_0
:
b2ShapeId
)
:
boolean
;
b2Shape_RayCast
(
_0
:
b2ShapeId
,
_1
:
b2RayCastInput
|
null
)
:
b2CastOutput
;
b2Shape_SetCapsule
(
_0
:
b2ShapeId
,
_1
:
b2Capsule
|
null
)
:
void
;
b2Shape_SetCircle
(
_0
:
b2ShapeId
,
_1
:
b2Circle
|
null
)
:
void
;
b2Shape_SetDensity
(
_0
:
b2ShapeId
,
_1
:
number
,
_2
:
boolean
)
:
void
;
b2Shape_SetFilter
(
_0
:
b2ShapeId
,
_1
:
b2Filter
)
:
void
;
b2Shape_SetFriction
(
_0
:
b2ShapeId
,
_1
:
number
)
:
void
;
b2Shape_SetPolygon
(
_0
:
b2ShapeId
,
_1
:
b2Polygon
|
null
)
:
void
;
b2Shape_SetRestitution
(
_0
:
b2ShapeId
,
_1
:
number
)
:
void
;
b2Shape_SetSegment
(
_0
:
b2ShapeId
,
_1
:
b2Segment
|
null
)
:
void
;
b2Shape_SetSurfaceMaterial
(
_0
:
b2ShapeId
,
_1
:
b2SurfaceMaterial
|
null
,
)
:
void
;
b2Shape_TestPoint
(
_0
:
b2ShapeId
,
_1
:
b2Vec2
)
:
boolean
;
b2Solve22
(
_0
:
b2Mat22
,
_1
:
b2Vec2
)
:
b2Vec2
;
b2SolvePlanes
(
_0
:
b2Vec2
,
_1
:
any
)
:
b2PlaneSolverResult
;
b2Sub
(
_0
:
b2Vec2
,
_1
:
b2Vec2
)
:
b2Vec2
;
b2TransformPoint
(
_0
:
b2Transform
,
_1
:
b2Vec2
)
:
b2Vec2
;
b2TransformPolygon
(
_0
:
b2Transform
,
_1
:
b2Polygon
|
null
)
:
b2Polygon
;
b2UnwindAngle
(
_0
:
number
)
:
number
;
b2WeldJoint_GetAngularDampingRatio
(
_0
:
b2JointId
)
:
number
;
b2WeldJoint_GetAngularHertz
(
_0
:
b2JointId
)
:
number
;
b2WeldJoint_GetLinearDampingRatio
(
_0
:
b2JointId
)
:
number
;
b2WeldJoint_GetLinearHertz
(
_0
:
b2JointId
)
:
number
;
b2WeldJoint_SetAngularDampingRatio
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2WeldJoint_SetAngularHertz
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2WeldJoint_SetLinearDampingRatio
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2WeldJoint_SetLinearHertz
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2WheelJoint_EnableLimit
(
_0
:
b2JointId
,
_1
:
boolean
)
:
void
;
b2WheelJoint_EnableMotor
(
_0
:
b2JointId
,
_1
:
boolean
)
:
void
;
b2WheelJoint_EnableSpring
(
_0
:
b2JointId
,
_1
:
boolean
)
:
void
;
b2WheelJoint_GetLowerLimit
(
_0
:
b2JointId
)
:
number
;
b2WheelJoint_GetMaxMotorTorque
(
_0
:
b2JointId
)
:
number
;
b2WheelJoint_GetMotorSpeed
(
_0
:
b2JointId
)
:
number
;
b2WheelJoint_GetMotorTorque
(
_0
:
b2JointId
)
:
number
;
b2WheelJoint_GetSpringDampingRatio
(
_0
:
b2JointId
)
:
number
;
b2WheelJoint_GetSpringHertz
(
_0
:
b2JointId
)
:
number
;
b2WheelJoint_GetUpperLimit
(
_0
:
b2JointId
)
:
number
;
b2WheelJoint_IsLimitEnabled
(
_0
:
b2JointId
)
:
boolean
;
b2WheelJoint_IsMotorEnabled
(
_0
:
b2JointId
)
:
boolean
;
b2WheelJoint_IsSpringEnabled
(
_0
:
b2JointId
)
:
boolean
;
b2WheelJoint_SetLimits
(
_0
:
b2JointId
,
_1
:
number
,
_2
:
number
)
:
void
;
b2WheelJoint_SetMaxMotorTorque
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2WheelJoint_SetMotorSpeed
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2WheelJoint_SetSpringDampingRatio
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2WheelJoint_SetSpringHertz
(
_0
:
b2JointId
,
_1
:
number
)
:
void
;
b2World_CastMover
(
_0
:
b2WorldId
,
_1
:
b2Capsule
|
null
,
_2
:
b2Vec2
,
_3
:
b2QueryFilter
,
)
:
number
;
b2World_CastRay
(
_0
:
b2WorldId
,
_1
:
b2Vec2
,
_2
:
b2Vec2
,
_3
:
b2QueryFilter
,
_4
:
any
,
)
:
b2TreeStats
;
b2World_CastRayClosest
(
_0
:
b2WorldId
,
_1
:
b2Vec2
,
_2
:
b2Vec2
,
_3
:
b2QueryFilter
,
)
:
b2RayResult
;
b2World_CastShape
(
_0
:
b2WorldId
,
_1
:
b2ShapeProxy
|
null
,
_2
:
b2Vec2
,
_3
:
b2QueryFilter
,
_4
:
any
,
)
:
b2TreeStats
;
b2World_CollideMover
(
_0
:
b2WorldId
,
_1
:
b2Capsule
|
null
,
_2
:
b2QueryFilter
,
_3
:
any
,
)
:
void
;
b2World_DeleteCallback
(
_0
:
number
)
:
void
;
b2World_Draw
(
_0
:
b2WorldId
,
_1
:
b2DebugDraw
|
null
)
:
void
;
b2World_EnableContinuous
(
_0
:
b2WorldId
,
_1
:
boolean
)
:
void
;
b2World_EnableSleeping
(
_0
:
b2WorldId
,
_1
:
boolean
)
:
void
;
b2World_EnableSpeculative
(
_0
:
b2WorldId
,
_1
:
boolean
)
:
void
;
b2World_EnableWarmStarting
(
_0
:
b2WorldId
,
_1
:
boolean
)
:
void
;
b2World_Explode
(
_0
:
b2WorldId
,
_1
:
b2ExplosionDef
|
null
)
:
void
;
b2World_GetAwakeBodyCount
(
_0
:
b2WorldId
)
:
number
;
b2World_GetBodyEvents
(
_0
:
b2WorldId
)
:
b2BodyEvents
;
b2World_GetContactEvents
(
_0
:
b2WorldId
)
:
b2ContactEvents
;
b2World_GetCounters
(
_0
:
b2WorldId
)
:
b2Counters
;
b2World_GetGravity
(
_0
:
b2WorldId
)
:
b2Vec2
;
b2World_GetHitEventThreshold
(
_0
:
b2WorldId
)
:
number
;
b2World_GetJointEvents
(
_0
:
b2WorldId
)
:
b2JointEvents
;
b2World_GetMaximumLinearSpeed
(
_0
:
b2WorldId
)
:
number
;
b2World_GetPointer
(
_0
:
b2WorldId
)
:
any
;
b2World_GetProfile
(
_0
:
b2WorldId
)
:
b2Profile
;
b2World_GetRestitutionThreshold
(
_0
:
b2WorldId
)
:
number
;
b2World_GetSensorEvents
(
_0
:
b2WorldId
)
:
b2SensorEvents
;
b2World_IsContinuousEnabled
(
_0
:
b2WorldId
)
:
boolean
;
b2World_IsSleepingEnabled
(
_0
:
b2WorldId
)
:
boolean
;
b2World_IsValid
(
_0
:
b2WorldId
)
:
boolean
;
b2World_IsWarmStartingEnabled
(
_0
:
b2WorldId
)
:
boolean
;
b2World_OverlapAABB
(
_0
:
b2WorldId
,
_1
:
b2AABB
,
_2
:
b2QueryFilter
,
_3
:
any
,
)
:
b2TreeStats
;
b2World_OverlapShape
(
_0
:
b2WorldId
,
_1
:
b2ShapeProxy
|
null
,
_2
:
b2QueryFilter
,
_3
:
any
,
)
:
b2TreeStats
;
b2World_RebuildStaticTree
(
_0
:
b2WorldId
)
:
void
;
b2World_SetContactTuning
(
_0
:
b2WorldId
,
_1
:
number
,
_2
:
number
,
_3
:
number
,
)
:
void
;
b2World_SetCustomFilterCallback
(
_0
:
b2WorldId
,
_1
:
any
)
:
number
;
b2World_SetFrictionCallback
(
_0
:
b2WorldId
,
_1
:
any
)
:
void
;
b2World_SetGravity
(
_0
:
b2WorldId
,
_1
:
b2Vec2
)
:
void
;
b2World_SetHitEventThreshold
(
_0
:
b2WorldId
,
_1
:
number
)
:
void
;
b2World_SetMaximumLinearSpeed
(
_0
:
b2WorldId
,
_1
:
number
)
:
void
;
b2World_SetPreSolveCallback
(
_0
:
b2WorldId
,
_1
:
any
)
:
number
;
b2World_SetRestitutionCallback
(
_0
:
b2WorldId
,
_1
:
any
)
:
void
;
b2World_SetRestitutionThreshold
(
_0
:
b2WorldId
,
_1
:
number
)
:
void
;
b2World_Step
(
_0
:
b2WorldId
,
_1
:
number
,
_2
:
number
)
:
void
;
GetMemoryStats
()
:
MemoryStats
;
RandomFloat
()
:
number
;
RandomFloatRange
(
_0
:
number
,
_1
:
number
)
:
number
;
RandomInt
()
:
number
;
RandomIntRange
(
_0
:
number
,
_1
:
number
)
:
number
;
RandomPolygon
(
_0
:
number
)
:
b2Polygon
;
RandomVec2
(
_0
:
number
,
_1
:
number
)
:
b2Vec2
;
}
Index
Properties
B2_
HASH_
INIT
B2_
PI
b2
AABB
b2
Body
Def
b2
Body
Events
b2
Body
Move
Event
b2
Body
Type
b2
Capsule
b2
Cast
Output
b2
Chain
Def
b2
Chain
Segment
b2
Circle
b2
Collision
Plane
b2
Contact
Begin
Touch
Event
b2
Contact
Data
b2
Contact
Events
b2
Contact
Hit
Event
b2
Cos
Sin
b2
Counters
b2
Debug
Draw
b2
Distance
Joint
Def
b2
Explosion
Def
b2
Filter
b2
Filter
Joint
Def
b2
Hull
b2
Joint
Def
b2
Joint
Event
b2
Joint
Events
b2
Joint
Type
b2
Manifold
b2
Manifold
Point
b2
Mass
Data
b2
Mat22
b2
Motion
Locks
b2
Motor
Joint
Def
b2
Plane
b2
Plane
Solver
Result
b2
Polygon
b2
Prismatic
Joint
Def
b2
Profile
b2
Query
Filter
b2
Ray
Callback
Result
b2
Ray
Cast
Input
b2
Ray
Result
b2
Revolute
Joint
Def
b2
Rot
b2
Rot_
identity
b2
Segment
b2
Sensor
Events
b2
Shape
Def
b2
Shape
Proxy
b2
Shape
Type
b2
Surface
Material
b2
Transform
b2
Vec2
b2
Vec2_
zero
b2
Weld
Joint
Def
b2
Wheel
Joint
Def
b2
World
Def
Basic
Body
Interface
Basic
Chain
Interface
Basic
Distance
Joint
Interface
Basic
Joint
Interface
Basic
Motor
Joint
Interface
Basic
Prismatic
Joint
Interface
Basic
Revolute
Joint
Interface
Basic
Shape
Interface
Basic
Weld
Joint
Interface
Basic
Wheel
Joint
Interface
Basic
World
Interface
Body
Body
Const
Ref
Body
Ref
Chain
Chain
Const
Ref
Chain
Ref
Debug
Draw
Command
Buffer
Debug
Draw
Command
Type
Distance
Joint
Distance
Joint
Const
Ref
Distance
Joint
Ref
Joint
Joint
Const
Ref
Joint
Ref
Motor
Joint
Motor
Joint
Const
Ref
Motor
Joint
Ref
Prismatic
Joint
Prismatic
Joint
Const
Ref
Prismatic
Joint
Ref
Revolute
Joint
Revolute
Joint
Const
Ref
Revolute
Joint
Ref
Shape
Task
System
Weld
Joint
Weld
Joint
Const
Ref
Weld
Joint
Ref
Wheel
Joint
Wheel
Joint
Const
Ref
Wheel
Joint
Ref
World
World
Const
Ref
World
Ref
Methods
B2_
ID_
EQUALS
b2
AABB_
Center
b2
AABB_
Contains
b2
AABB_
Extents
b2
AABB_
Union
b2
Abs
b2
Add
b2
Body_
Apply
Angular
Impulse
b2
Body_
Apply
Force
b2
Body_
Apply
Force
To
Center
b2
Body_
Apply
Linear
Impulse
b2
Body_
Apply
Linear
Impulse
To
Center
b2
Body_
Apply
Mass
From
Shapes
b2
Body_
Apply
Torque
b2
Body_
Compute
AABB
b2
Body_
Disable
b2
Body_
Enable
b2
Body_
Enable
Contact
Events
b2
Body_
Enable
Hit
Events
b2
Body_
Enable
Sleep
b2
Body_
Get
Angular
Damping
b2
Body_
Get
Angular
Velocity
b2
Body_
Get
Contact
Capacity
b2
Body_
Get
Contact
Data
b2
Body_
Get
Gravity
Scale
b2
Body_
Get
Joint
Count
b2
Body_
Get
Joints
b2
Body_
Get
Linear
Damping
b2
Body_
Get
Linear
Velocity
b2
Body_
Get
Local
Center
Of
Mass
b2
Body_
Get
Local
Point
b2
Body_
Get
Local
Point
Velocity
b2
Body_
Get
Local
Vector
b2
Body_
Get
Mass
b2
Body_
Get
Mass
Data
b2
Body_
Get
Motion
Locks
b2
Body_
Get
Pointer
b2
Body_
Get
Position
b2
Body_
Get
Rotation
b2
Body_
Get
Rotational
Inertia
b2
Body_
Get
Shape
Count
b2
Body_
Get
Shapes
b2
Body_
Get
Sleep
Threshold
b2
Body_
Get
Transform
b2
Body_
Get
Type
b2
Body_
Get
World
b2
Body_
Get
World
Center
Of
Mass
b2
Body_
Get
World
Point
b2
Body_
Get
World
Point
Velocity
b2
Body_
Get
World
Vector
b2
Body_
Is
Awake
b2
Body_
Is
Bullet
b2
Body_
Is
Enabled
b2
Body_
Is
Sleep
Enabled
b2
Body_
Is
Valid
b2
Body_
Set
Angular
Damping
b2
Body_
Set
Angular
Velocity
b2
Body_
Set
Awake
b2
Body_
Set
Bullet
b2
Body_
Set
Gravity
Scale
b2
Body_
Set
Linear
Damping
b2
Body_
Set
Linear
Velocity
b2
Body_
Set
Mass
Data
b2
Body_
Set
Motion
Locks
b2
Body_
Set
Sleep
Threshold
b2
Body_
Set
Target
Transform
b2
Body_
Set
Transform
b2
Body_
Set
Type
b2
Chain_
Get
Segment
Count
b2
Chain_
Get
Segments
b2
Chain_
Is
Valid
b2
Clamp
b2
Clip
Vector
b2
Compute
Angular
Velocity
b2
Compute
Capsule
AABB
b2
Compute
Capsule
Mass
b2
Compute
Circle
AABB
b2
Compute
Circle
Mass
b2
Compute
Hull
b2
Compute
Polygon
AABB
b2
Compute
Polygon
Mass
b2
Compute
Segment
AABB
b2
Create
Body
b2
Create
Capsule
Shape
b2
Create
Chain
b2
Create
Circle
Shape
b2
Create
Distance
Joint
b2
Create
Filter
Joint
b2
Create
Motor
Joint
b2
Create
Polygon
Shape
b2
Create
Prismatic
Joint
b2
Create
Revolute
Joint
b2
Create
Segment
Shape
b2
Create
Threaded
World
b2
Create
Weld
Joint
b2
Create
Wheel
Joint
b2
Create
World
b2
Cross
b2
Cross
SV
b2
Cross
VS
b2
Default
Body
Def
b2
Default
Chain
Def
b2
Default
Debug
Draw
b2
Default
Distance
Joint
Def
b2
Default
Explosion
Def
b2
Default
Filter
Joint
Def
b2
Default
Motor
Joint
Def
b2
Default
Prismatic
Joint
Def
b2
Default
Query
Filter
b2
Default
Revolute
Joint
Def
b2
Default
Shape
Def
b2
Default
Surface
Material
b2
Default
Weld
Joint
Def
b2
Default
Wheel
Joint
Def
b2
Default
World
Def
b2
Destroy
Body
b2
Destroy
Chain
b2
Destroy
Joint
b2
Destroy
Shape
b2
Destroy
World
b2
Distance
b2
Distance
Joint_
Enable
Limit
b2
Distance
Joint_
Enable
Motor
b2
Distance
Joint_
Enable
Spring
b2
Distance
Joint_
Get
Current
Length
b2
Distance
Joint_
Get
Length
b2
Distance
Joint_
Get
Max
Length
b2
Distance
Joint_
Get
Max
Motor
Force
b2
Distance
Joint_
Get
Min
Length
b2
Distance
Joint_
Get
Motor
Force
b2
Distance
Joint_
Get
Motor
Speed
b2
Distance
Joint_
Get
Spring
Damping
Ratio
b2
Distance
Joint_
Get
Spring
Hertz
b2
Distance
Joint_
Is
Limit
Enabled
b2
Distance
Joint_
Is
Motor
Enabled
b2
Distance
Joint_
Is
Spring
Enabled
b2
Distance
Joint_
Set
Length
b2
Distance
Joint_
Set
Length
Range
b2
Distance
Joint_
Set
Max
Motor
Force
b2
Distance
Joint_
Set
Motor
Speed
b2
Distance
Joint_
Set
Spring
Damping
Ratio
b2
Distance
Joint_
Set
Spring
Hertz
b2
Distance
Squared
b2
Dot
b2
Get
Inverse22
b2
Hash
b2
Integrate
Rotation
b2
Inv
Mul
Rot
b2
Inv
Mul
Transforms
b2
Inv
Rotate
Vector
b2
Inv
Transform
Point
b2
Is
Normalized
b2
Is
Valid
Plane
b2
Is
Valid
Ray
b2
Joint_
Get
Body
A
b2
Joint_
Get
Body
B
b2
Joint_
Get
Collide
Connected
b2
Joint_
Get
Constraint
Force
b2
Joint_
Get
Constraint
Torque
b2
Joint_
Get
Force
Threshold
b2
Joint_
Get
Local
Frame
A
b2
Joint_
Get
Local
Frame
B
b2
Joint_
Get
Pointer
b2
Joint_
Get
Torque
Threshold
b2
Joint_
Get
Type
b2
Joint_
Get
World
b2
Joint_
Is
Valid
b2
Joint_
Set
Collide
Connected
b2
Joint_
Set
Force
Threshold
b2
Joint_
Set
Local
Frame
A
b2
Joint_
Set
Local
Frame
B
b2
Joint_
Set
Torque
Threshold
b2
Joint_
Wake
Bodies
b2
Left
Perp
b2
Length
b2
Length
Squared
b2
Lerp
b2
Make
Box
b2
Make
Offset
Box
b2
Make
Offset
Polygon
b2
Make
Offset
Proxy
b2
Make
Offset
Rounded
Box
b2
Make
Offset
Rounded
Polygon
b2
Make
Polygon
b2
Make
Proxy
b2
Make
Rot
b2
Make
Rounded
Box
b2
Make
Square
b2
Max
b2
Max
Float
b2
Min
b2
Motor
Joint_
Get
Angular
Damping
Ratio
b2
Motor
Joint_
Get
Angular
Hertz
b2
Motor
Joint_
Get
Angular
Velocity
b2
Motor
Joint_
Get
Linear
Damping
Ratio
b2
Motor
Joint_
Get
Linear
Hertz
b2
Motor
Joint_
Get
Linear
Velocity
b2
Motor
Joint_
Get
Max
Spring
Force
b2
Motor
Joint_
Get
Max
Spring
Torque
b2
Motor
Joint_
Get
Max
Velocity
Force
b2
Motor
Joint_
Get
Max
Velocity
Torque
b2
Motor
Joint_
Set
Angular
Damping
Ratio
b2
Motor
Joint_
Set
Angular
Hertz
b2
Motor
Joint_
Set
Angular
Velocity
b2
Motor
Joint_
Set
Linear
Damping
Ratio
b2
Motor
Joint_
Set
Linear
Hertz
b2
Motor
Joint_
Set
Linear
Velocity
b2
Motor
Joint_
Set
Max
Spring
Force
b2
Motor
Joint_
Set
Max
Spring
Torque
b2
Motor
Joint_
Set
Max
Velocity
Force
b2
Motor
Joint_
Set
Max
Velocity
Torque
b2
Mul
b2
Mul
Add
b2
Mul
MV
b2
Mul
Rot
b2
Mul
Sub
b2
Mul
SV
b2
Mul
Transforms
b2
Neg
b2
N
Lerp
b2
Normalize
b2
Normalize
Rot
b2
Point
In
Capsule
b2
Point
In
Circle
b2
Point
In
Polygon
b2
Prismatic
Joint_
Enable
Limit
b2
Prismatic
Joint_
Enable
Motor
b2
Prismatic
Joint_
Enable
Spring
b2
Prismatic
Joint_
Get
Lower
Limit
b2
Prismatic
Joint_
Get
Max
Motor
Force
b2
Prismatic
Joint_
Get
Motor
Force
b2
Prismatic
Joint_
Get
Motor
Speed
b2
Prismatic
Joint_
Get
Speed
b2
Prismatic
Joint_
Get
Spring
Damping
Ratio
b2
Prismatic
Joint_
Get
Spring
Hertz
b2
Prismatic
Joint_
Get
Translation
b2
Prismatic
Joint_
Get
Upper
Limit
b2
Prismatic
Joint_
Is
Limit
Enabled
b2
Prismatic
Joint_
Is
Motor
Enabled
b2
Prismatic
Joint_
Is
Spring
Enabled
b2
Prismatic
Joint_
Set
Limits
b2
Prismatic
Joint_
Set
Max
Motor
Force
b2
Prismatic
Joint_
Set
Motor
Speed
b2
Prismatic
Joint_
Set
Spring
Damping
Ratio
b2
Prismatic
Joint_
Set
Spring
Hertz
b2
Relative
Angle
b2
Revolute
Joint_
Enable
Limit
b2
Revolute
Joint_
Enable
Motor
b2
Revolute
Joint_
Enable
Spring
b2
Revolute
Joint_
Get
Angle
b2
Revolute
Joint_
Get
Lower
Limit
b2
Revolute
Joint_
Get
Max
Motor
Torque
b2
Revolute
Joint_
Get
Motor
Speed
b2
Revolute
Joint_
Get
Motor
Torque
b2
Revolute
Joint_
Get
Spring
Damping
Ratio
b2
Revolute
Joint_
Get
Spring
Hertz
b2
Revolute
Joint_
Get
Upper
Limit
b2
Revolute
Joint_
Is
Limit
Enabled
b2
Revolute
Joint_
Is
Motor
Enabled
b2
Revolute
Joint_
Is
Spring
Enabled
b2
Revolute
Joint_
Set
Limits
b2
Revolute
Joint_
Set
Max
Motor
Torque
b2
Revolute
Joint_
Set
Motor
Speed
b2
Revolute
Joint_
Set
Spring
Damping
Ratio
b2
Revolute
Joint_
Set
Spring
Hertz
b2
Right
Perp
b2
Rot_
Get
Angle
b2
Rot_
Get
X
Axis
b2
Rot_
Get
Y
Axis
b2
Rotate
Vector
b2
Shape_
Apply
Wind
b2
Shape_
Are
Contact
Events
Enabled
b2
Shape_
Are
Hit
Events
Enabled
b2
Shape_
Are
Pre
Solve
Events
Enabled
b2
Shape_
Are
Sensor
Events
Enabled
b2
Shape_
Compute
Mass
Data
b2
Shape_
Enable
Contact
Events
b2
Shape_
Enable
Hit
Events
b2
Shape_
Enable
Pre
Solve
Events
b2
Shape_
Enable
Sensor
Events
b2
Shape_
Get
AABB
b2
Shape_
Get
Body
b2
Shape_
Get
Capsule
b2
Shape_
Get
Chain
Segment
b2
Shape_
Get
Circle
b2
Shape_
Get
Closest
Point
b2
Shape_
Get
Contact
Capacity
b2
Shape_
Get
Contact
Data
b2
Shape_
Get
Density
b2
Shape_
Get
Filter
b2
Shape_
Get
Friction
b2
Shape_
Get
Parent
Chain
b2
Shape_
Get
Pointer
b2
Shape_
Get
Polygon
b2
Shape_
Get
Restitution
b2
Shape_
Get
Segment
b2
Shape_
Get
Sensor
Capacity
b2
Shape_
Get
Sensor
Data
b2
Shape_
Get
Surface
Material
b2
Shape_
Get
Type
b2
Shape_
Get
World
b2
Shape_
Is
Sensor
b2
Shape_
Is
Valid
b2
Shape_
Ray
Cast
b2
Shape_
Set
Capsule
b2
Shape_
Set
Circle
b2
Shape_
Set
Density
b2
Shape_
Set
Filter
b2
Shape_
Set
Friction
b2
Shape_
Set
Polygon
b2
Shape_
Set
Restitution
b2
Shape_
Set
Segment
b2
Shape_
Set
Surface
Material
b2
Shape_
Test
Point
b2
Solve22
b2
Solve
Planes
b2
Sub
b2
Transform
Point
b2
Transform
Polygon
b2
Unwind
Angle
b2
Weld
Joint_
Get
Angular
Damping
Ratio
b2
Weld
Joint_
Get
Angular
Hertz
b2
Weld
Joint_
Get
Linear
Damping
Ratio
b2
Weld
Joint_
Get
Linear
Hertz
b2
Weld
Joint_
Set
Angular
Damping
Ratio
b2
Weld
Joint_
Set
Angular
Hertz
b2
Weld
Joint_
Set
Linear
Damping
Ratio
b2
Weld
Joint_
Set
Linear
Hertz
b2
Wheel
Joint_
Enable
Limit
b2
Wheel
Joint_
Enable
Motor
b2
Wheel
Joint_
Enable
Spring
b2
Wheel
Joint_
Get
Lower
Limit
b2
Wheel
Joint_
Get
Max
Motor
Torque
b2
Wheel
Joint_
Get
Motor
Speed
b2
Wheel
Joint_
Get
Motor
Torque
b2
Wheel
Joint_
Get
Spring
Damping
Ratio
b2
Wheel
Joint_
Get
Spring
Hertz
b2
Wheel
Joint_
Get
Upper
Limit
b2
Wheel
Joint_
Is
Limit
Enabled
b2
Wheel
Joint_
Is
Motor
Enabled
b2
Wheel
Joint_
Is
Spring
Enabled
b2
Wheel
Joint_
Set
Limits
b2
Wheel
Joint_
Set
Max
Motor
Torque
b2
Wheel
Joint_
Set
Motor
Speed
b2
Wheel
Joint_
Set
Spring
Damping
Ratio
b2
Wheel
Joint_
Set
Spring
Hertz
b2
World_
Cast
Mover
b2
World_
Cast
Ray
b2
World_
Cast
Ray
Closest
b2
World_
Cast
Shape
b2
World_
Collide
Mover
b2
World_
Delete
Callback
b2
World_
Draw
b2
World_
Enable
Continuous
b2
World_
Enable
Sleeping
b2
World_
Enable
Speculative
b2
World_
Enable
Warm
Starting
b2
World_
Explode
b2
World_
Get
Awake
Body
Count
b2
World_
Get
Body
Events
b2
World_
Get
Contact
Events
b2
World_
Get
Counters
b2
World_
Get
Gravity
b2
World_
Get
Hit
Event
Threshold
b2
World_
Get
Joint
Events
b2
World_
Get
Maximum
Linear
Speed
b2
World_
Get
Pointer
b2
World_
Get
Profile
b2
World_
Get
Restitution
Threshold
b2
World_
Get
Sensor
Events
b2
World_
Is
Continuous
Enabled
b2
World_
Is
Sleeping
Enabled
b2
World_
Is
Valid
b2
World_
Is
Warm
Starting
Enabled
b2
World_
Overlap
AABB
b2
World_
Overlap
Shape
b2
World_
Rebuild
Static
Tree
b2
World_
Set
Contact
Tuning
b2
World_
Set
Custom
Filter
Callback
b2
World_
Set
Friction
Callback
b2
World_
Set
Gravity
b2
World_
Set
Hit
Event
Threshold
b2
World_
Set
Maximum
Linear
Speed
b2
World_
Set
Pre
Solve
Callback
b2
World_
Set
Restitution
Callback
b2
World_
Set
Restitution
Threshold
b2
World_
Step
Get
Memory
Stats
Random
Float
Random
Float
Range
Random
Int
Random
Int
Range
Random
Polygon
Random
Vec2
Properties
B2_
HASH_
INIT
B2_HASH_INIT
:
number
B2_
PI
B2_PI
:
number
b2
AABB
b2AABB
:
new
()
=>
b2AABB
b2
Body
Def
b2BodyDef
:
{
new
()
:
b2BodyDef
;
new
(
_0
:
b2BodyDef
)
:
b2BodyDef
}
b2
Body
Events
b2BodyEvents
:
new
()
=>
b2BodyEvents
b2
Body
Move
Event
b2BodyMoveEvent
:
{}
b2
Body
Type
b2BodyType
:
{
b2_bodyTypeCount
:
b2BodyTypeValue
<
3
>
;
b2_dynamicBody
:
b2BodyTypeValue
<
2
>
;
b2_kinematicBody
:
b2BodyTypeValue
<
1
>
;
b2_staticBody
:
b2BodyTypeValue
<
0
>
;
}
b2
Capsule
b2Capsule
:
new
()
=>
b2Capsule
b2
Cast
Output
b2CastOutput
:
new
()
=>
b2CastOutput
b2
Chain
Def
b2ChainDef
:
new
()
=>
b2ChainDef
b2
Chain
Segment
b2ChainSegment
:
new
()
=>
b2ChainSegment
b2
Circle
b2Circle
:
new
()
=>
b2Circle
b2
Collision
Plane
b2CollisionPlane
:
new
()
=>
b2CollisionPlane
b2
Contact
Begin
Touch
Event
b2ContactBeginTouchEvent
:
{}
b2
Contact
Data
b2ContactData
:
{}
b2
Contact
Events
b2ContactEvents
:
new
()
=>
b2ContactEvents
b2
Contact
Hit
Event
b2ContactHitEvent
:
{}
b2
Cos
Sin
b2CosSin
:
new
()
=>
b2CosSin
b2
Counters
b2Counters
:
new
()
=>
b2Counters
b2
Debug
Draw
b2DebugDraw
:
{
new
()
:
b2DebugDraw
;
new
(
_0
:
b2DebugDraw
)
:
b2DebugDraw
}
b2
Distance
Joint
Def
b2DistanceJointDef
:
{
new
()
:
b2DistanceJointDef
;
new
(
_0
:
b2DistanceJointDef
)
:
b2DistanceJointDef
;
}
b2
Explosion
Def
b2ExplosionDef
:
new
()
=>
b2ExplosionDef
b2
Filter
b2Filter
:
new
()
=>
b2Filter
b2
Filter
Joint
Def
b2FilterJointDef
:
{
new
()
:
b2FilterJointDef
;
new
(
_0
:
b2FilterJointDef
)
:
b2FilterJointDef
;
}
b2
Hull
b2Hull
:
new
()
=>
b2Hull
b2
Joint
Def
b2JointDef
:
new
()
=>
b2JointDef
b2
Joint
Event
b2JointEvent
:
{}
b2
Joint
Events
b2JointEvents
:
new
()
=>
b2JointEvents
b2
Joint
Type
b2JointType
:
{
b2_distanceJoint
:
b2JointTypeValue
<
0
>
;
b2_filterJoint
:
b2JointTypeValue
<
1
>
;
b2_motorJoint
:
b2JointTypeValue
<
2
>
;
b2_prismaticJoint
:
b2JointTypeValue
<
3
>
;
b2_revoluteJoint
:
b2JointTypeValue
<
4
>
;
b2_weldJoint
:
b2JointTypeValue
<
5
>
;
b2_wheelJoint
:
b2JointTypeValue
<
6
>
;
}
b2
Manifold
b2Manifold
:
new
()
=>
b2Manifold
b2
Manifold
Point
b2ManifoldPoint
:
new
()
=>
b2ManifoldPoint
b2
Mass
Data
b2MassData
:
new
()
=>
b2MassData
b2
Mat22
b2Mat22
:
new
()
=>
b2Mat22
b2
Motion
Locks
b2MotionLocks
:
new
()
=>
b2MotionLocks
b2
Motor
Joint
Def
b2MotorJointDef
:
{
new
()
:
b2MotorJointDef
;
new
(
_0
:
b2MotorJointDef
)
:
b2MotorJointDef
;
}
b2
Plane
b2Plane
:
new
()
=>
b2Plane
b2
Plane
Solver
Result
b2PlaneSolverResult
:
new
()
=>
b2PlaneSolverResult
b2
Polygon
b2Polygon
:
{
GetMaxVertices
()
:
number
;
new
()
:
b2Polygon
}
b2
Prismatic
Joint
Def
b2PrismaticJointDef
:
{
new
()
:
b2PrismaticJointDef
;
new
(
_0
:
b2PrismaticJointDef
)
:
b2PrismaticJointDef
;
}
b2
Profile
b2Profile
:
new
()
=>
b2Profile
b2
Query
Filter
b2QueryFilter
:
new
()
=>
b2QueryFilter
b2
Ray
Callback
Result
b2RayCallbackResult
:
new
()
=>
b2RayCallbackResult
b2
Ray
Cast
Input
b2RayCastInput
:
new
()
=>
b2RayCastInput
b2
Ray
Result
b2RayResult
:
new
()
=>
b2RayResult
b2
Revolute
Joint
Def
b2RevoluteJointDef
:
{
new
()
:
b2RevoluteJointDef
;
new
(
_0
:
b2RevoluteJointDef
)
:
b2RevoluteJointDef
;
}
b2
Rot
b2Rot
:
new
()
=>
b2Rot
b2
Rot_
identity
b2Rot_identity
:
b2Rot
b2
Segment
b2Segment
:
new
()
=>
b2Segment
b2
Sensor
Events
b2SensorEvents
:
new
()
=>
b2SensorEvents
b2
Shape
Def
b2ShapeDef
:
new
()
=>
b2ShapeDef
b2
Shape
Proxy
b2ShapeProxy
:
new
()
=>
b2ShapeProxy
b2
Shape
Type
b2ShapeType
:
{
b2_capsuleShape
:
b2ShapeTypeValue
<
1
>
;
b2_chainSegmentShape
:
b2ShapeTypeValue
<
4
>
;
b2_circleShape
:
b2ShapeTypeValue
<
0
>
;
b2_polygonShape
:
b2ShapeTypeValue
<
3
>
;
b2_segmentShape
:
b2ShapeTypeValue
<
2
>
;
b2_shapeTypeCount
:
b2ShapeTypeValue
<
5
>
;
}
b2
Surface
Material
b2SurfaceMaterial
:
new
()
=>
b2SurfaceMaterial
b2
Transform
b2Transform
:
new
()
=>
b2Transform
b2
Vec2
b2Vec2
:
{
new
()
:
b2Vec2
;
new
(
_0
:
number
,
_1
:
number
)
:
b2Vec2
}
b2
Vec2_
zero
b2Vec2_zero
:
b2Vec2
b2
Weld
Joint
Def
b2WeldJointDef
:
{
new
()
:
b2WeldJointDef
;
new
(
_0
:
b2WeldJointDef
)
:
b2WeldJointDef
;
}
b2
Wheel
Joint
Def
b2WheelJointDef
:
{
new
()
:
b2WheelJointDef
;
new
(
_0
:
b2WheelJointDef
)
:
b2WheelJointDef
;
}
b2
World
Def
b2WorldDef
:
{
new
()
:
b2WorldDef
;
new
(
_0
:
b2WorldDef
)
:
b2WorldDef
}
Basic
Body
Interface
BasicBodyInterface
:
{}
Basic
Chain
Interface
BasicChainInterface
:
{}
Basic
Distance
Joint
Interface
BasicDistanceJointInterface
:
{}
Basic
Joint
Interface
BasicJointInterface
:
{}
Basic
Motor
Joint
Interface
BasicMotorJointInterface
:
{}
Basic
Prismatic
Joint
Interface
BasicPrismaticJointInterface
:
{}
Basic
Revolute
Joint
Interface
BasicRevoluteJointInterface
:
{}
Basic
Shape
Interface
BasicShapeInterface
:
{}
Basic
Weld
Joint
Interface
BasicWeldJointInterface
:
{}
Basic
Wheel
Joint
Interface
BasicWheelJointInterface
:
{}
Basic
World
Interface
BasicWorldInterface
:
{}
Body
Body
:
new
()
=>
Body
Body
Const
Ref
BodyConstRef
:
{}
Body
Ref
BodyRef
:
{}
Chain
Chain
:
new
()
=>
Chain
Chain
Const
Ref
ChainConstRef
:
{}
Chain
Ref
ChainRef
:
{}
Debug
Draw
Command
Buffer
DebugDrawCommandBuffer
:
{
new
()
:
DebugDrawCommandBuffer
;
new
(
_0
:
number
)
:
DebugDrawCommandBuffer
;
}
Debug
Draw
Command
Type
DebugDrawCommandType
:
{
e_circle
:
DebugDrawCommandTypeValue
<
2
>
;
e_line
:
DebugDrawCommandTypeValue
<
5
>
;
e_point
:
DebugDrawCommandTypeValue
<
7
>
;
e_polygon
:
DebugDrawCommandTypeValue
<
0
>
;
e_solidCapsule
:
DebugDrawCommandTypeValue
<
4
>
;
e_solidCircle
:
DebugDrawCommandTypeValue
<
3
>
;
e_solidPolygon
:
DebugDrawCommandTypeValue
<
1
>
;
e_string
:
DebugDrawCommandTypeValue
<
8
>
;
e_transform
:
DebugDrawCommandTypeValue
<
6
>
;
}
Distance
Joint
DistanceJoint
:
new
()
=>
DistanceJoint
Distance
Joint
Const
Ref
DistanceJointConstRef
:
{}
Distance
Joint
Ref
DistanceJointRef
:
{}
Joint
Joint
:
new
()
=>
Joint
Joint
Const
Ref
JointConstRef
:
{}
Joint
Ref
JointRef
:
{}
Motor
Joint
MotorJoint
:
new
()
=>
MotorJoint
Motor
Joint
Const
Ref
MotorJointConstRef
:
{}
Motor
Joint
Ref
MotorJointRef
:
{}
Prismatic
Joint
PrismaticJoint
:
new
()
=>
PrismaticJoint
Prismatic
Joint
Const
Ref
PrismaticJointConstRef
:
{}
Prismatic
Joint
Ref
PrismaticJointRef
:
{}
Revolute
Joint
RevoluteJoint
:
new
()
=>
RevoluteJoint
Revolute
Joint
Const
Ref
RevoluteJointConstRef
:
{}
Revolute
Joint
Ref
RevoluteJointRef
:
{}
Shape
Shape
:
new
()
=>
Shape
Task
System
TaskSystem
:
new
(
_0
:
number
)
=>
TaskSystem
Weld
Joint
WeldJoint
:
new
()
=>
WeldJoint
Weld
Joint
Const
Ref
WeldJointConstRef
:
{}
Weld
Joint
Ref
WeldJointRef
:
{}
Wheel
Joint
WheelJoint
:
new
()
=>
WheelJoint
Wheel
Joint
Const
Ref
WheelJointConstRef
:
{}
Wheel
Joint
Ref
WheelJointRef
:
{}
World
World
:
{
new
()
:
World
;
new
(
_0
:
b2WorldDef
)
:
World
}
World
Const
Ref
WorldConstRef
:
{}
World
Ref
WorldRef
:
{}
Methods
B2_
ID_
EQUALS
B2_ID_EQUALS
(
_0
:
any
,
_1
:
any
)
:
boolean
Parameters
_0
:
any
_1
:
any
Returns
boolean
b2
AABB_
Center
b2AABB_Center
(
_0
:
b2AABB
)
:
b2Vec2
Parameters
_0
:
b2AABB
Returns
b2Vec2
b2
AABB_
Contains
b2AABB_Contains
(
_0
:
b2AABB
,
_1
:
b2AABB
)
:
boolean
Parameters
_0
:
b2AABB
_1
:
b2AABB
Returns
boolean
b2
AABB_
Extents
b2AABB_Extents
(
_0
:
b2AABB
)
:
b2Vec2
Parameters
_0
:
b2AABB
Returns
b2Vec2
b2
AABB_
Union
b2AABB_Union
(
_0
:
b2AABB
,
_1
:
b2AABB
)
:
b2AABB
Parameters
_0
:
b2AABB
_1
:
b2AABB
Returns
b2AABB
b2
Abs
b2Abs
(
_0
:
b2Vec2
)
:
b2Vec2
Parameters
_0
:
b2Vec2
Returns
b2Vec2
b2
Add
b2Add
(
_0
:
b2Vec2
,
_1
:
b2Vec2
)
:
b2Vec2
Parameters
_0
:
b2Vec2
_1
:
b2Vec2
Returns
b2Vec2
b2
Body_
Apply
Angular
Impulse
b2Body_ApplyAngularImpulse
(
_0
:
b2BodyId
,
_1
:
number
,
_2
:
boolean
)
:
void
Parameters
_0
:
b2BodyId
_1
:
number
_2
:
boolean
Returns
void
b2
Body_
Apply
Force
b2Body_ApplyForce
(
_0
:
b2BodyId
,
_1
:
b2Vec2
,
_2
:
b2Vec2
,
_3
:
boolean
)
:
void
Parameters
_0
:
b2BodyId
_1
:
b2Vec2
_2
:
b2Vec2
_3
:
boolean
Returns
void
b2
Body_
Apply
Force
To
Center
b2Body_ApplyForceToCenter
(
_0
:
b2BodyId
,
_1
:
b2Vec2
,
_2
:
boolean
)
:
void
Parameters
_0
:
b2BodyId
_1
:
b2Vec2
_2
:
boolean
Returns
void
b2
Body_
Apply
Linear
Impulse
b2Body_ApplyLinearImpulse
(
_0
:
b2BodyId
,
_1
:
b2Vec2
,
_2
:
b2Vec2
,
_3
:
boolean
,
)
:
void
Parameters
_0
:
b2BodyId
_1
:
b2Vec2
_2
:
b2Vec2
_3
:
boolean
Returns
void
b2
Body_
Apply
Linear
Impulse
To
Center
b2Body_ApplyLinearImpulseToCenter
(
_0
:
b2BodyId
,
_1
:
b2Vec2
,
_2
:
boolean
)
:
void
Parameters
_0
:
b2BodyId
_1
:
b2Vec2
_2
:
boolean
Returns
void
b2
Body_
Apply
Mass
From
Shapes
b2Body_ApplyMassFromShapes
(
_0
:
b2BodyId
)
:
void
Parameters
_0
:
b2BodyId
Returns
void
b2
Body_
Apply
Torque
b2Body_ApplyTorque
(
_0
:
b2BodyId
,
_1
:
number
,
_2
:
boolean
)
:
void
Parameters
_0
:
b2BodyId
_1
:
number
_2
:
boolean
Returns
void
b2
Body_
Compute
AABB
b2Body_ComputeAABB
(
_0
:
b2BodyId
)
:
b2AABB
Parameters
_0
:
b2BodyId
Returns
b2AABB
b2
Body_
Disable
b2Body_Disable
(
_0
:
b2BodyId
)
:
void
Parameters
_0
:
b2BodyId
Returns
void
b2
Body_
Enable
b2Body_Enable
(
_0
:
b2BodyId
)
:
void
Parameters
_0
:
b2BodyId
Returns
void
b2
Body_
Enable
Contact
Events
b2Body_EnableContactEvents
(
_0
:
b2BodyId
,
_1
:
boolean
)
:
void
Parameters
_0
:
b2BodyId
_1
:
boolean
Returns
void
b2
Body_
Enable
Hit
Events
b2Body_EnableHitEvents
(
_0
:
b2BodyId
,
_1
:
boolean
)
:
void
Parameters
_0
:
b2BodyId
_1
:
boolean
Returns
void
b2
Body_
Enable
Sleep
b2Body_EnableSleep
(
_0
:
b2BodyId
,
_1
:
boolean
)
:
void
Parameters
_0
:
b2BodyId
_1
:
boolean
Returns
void
b2
Body_
Get
Angular
Damping
b2Body_GetAngularDamping
(
_0
:
b2BodyId
)
:
number
Parameters
_0
:
b2BodyId
Returns
number
b2
Body_
Get
Angular
Velocity
b2Body_GetAngularVelocity
(
_0
:
b2BodyId
)
:
number
Parameters
_0
:
b2BodyId
Returns
number
b2
Body_
Get
Contact
Capacity
b2Body_GetContactCapacity
(
_0
:
b2BodyId
)
:
number
Parameters
_0
:
b2BodyId
Returns
number
b2
Body_
Get
Contact
Data
b2Body_GetContactData
(
_0
:
b2BodyId
,
_1
:
number
)
:
any
Parameters
_0
:
b2BodyId
_1
:
number
Returns
any
b2
Body_
Get
Gravity
Scale
b2Body_GetGravityScale
(
_0
:
b2BodyId
)
:
number
Parameters
_0
:
b2BodyId
Returns
number
b2
Body_
Get
Joint
Count
b2Body_GetJointCount
(
_0
:
b2BodyId
)
:
number
Parameters
_0
:
b2BodyId
Returns
number
b2
Body_
Get
Joints
b2Body_GetJoints
(
_0
:
b2BodyId
)
:
any
Parameters
_0
:
b2BodyId
Returns
any
b2
Body_
Get
Linear
Damping
b2Body_GetLinearDamping
(
_0
:
b2BodyId
)
:
number
Parameters
_0
:
b2BodyId
Returns
number
b2
Body_
Get
Linear
Velocity
b2Body_GetLinearVelocity
(
_0
:
b2BodyId
)
:
b2Vec2
Parameters
_0
:
b2BodyId
Returns
b2Vec2
b2
Body_
Get
Local
Center
Of
Mass
b2Body_GetLocalCenterOfMass
(
_0
:
b2BodyId
)
:
b2Vec2
Parameters
_0
:
b2BodyId
Returns
b2Vec2
b2
Body_
Get
Local
Point
b2Body_GetLocalPoint
(
_0
:
b2BodyId
,
_1
:
b2Vec2
)
:
b2Vec2
Parameters
_0
:
b2BodyId
_1
:
b2Vec2
Returns
b2Vec2
b2
Body_
Get
Local
Point
Velocity
b2Body_GetLocalPointVelocity
(
_0
:
b2BodyId
,
_1
:
b2Vec2
)
:
b2Vec2
Parameters
_0
:
b2BodyId
_1
:
b2Vec2
Returns
b2Vec2
b2
Body_
Get
Local
Vector
b2Body_GetLocalVector
(
_0
:
b2BodyId
,
_1
:
b2Vec2
)
:
b2Vec2
Parameters
_0
:
b2BodyId
_1
:
b2Vec2
Returns
b2Vec2
b2
Body_
Get
Mass
b2Body_GetMass
(
_0
:
b2BodyId
)
:
number
Parameters
_0
:
b2BodyId
Returns
number
b2
Body_
Get
Mass
Data
b2Body_GetMassData
(
_0
:
b2BodyId
)
:
b2MassData
Parameters
_0
:
b2BodyId
Returns
b2MassData
b2
Body_
Get
Motion
Locks
b2Body_GetMotionLocks
(
_0
:
b2BodyId
)
:
b2MotionLocks
Parameters
_0
:
b2BodyId
Returns
b2MotionLocks
b2
Body_
Get
Pointer
b2Body_GetPointer
(
_0
:
b2BodyId
)
:
any
Parameters
_0
:
b2BodyId
Returns
any
b2
Body_
Get
Position
b2Body_GetPosition
(
_0
:
b2BodyId
)
:
b2Vec2
Parameters
_0
:
b2BodyId
Returns
b2Vec2
b2
Body_
Get
Rotation
b2Body_GetRotation
(
_0
:
b2BodyId
)
:
b2Rot
Parameters
_0
:
b2BodyId
Returns
b2Rot
b2
Body_
Get
Rotational
Inertia
b2Body_GetRotationalInertia
(
_0
:
b2BodyId
)
:
number
Parameters
_0
:
b2BodyId
Returns
number
b2
Body_
Get
Shape
Count
b2Body_GetShapeCount
(
_0
:
b2BodyId
)
:
number
Parameters
_0
:
b2BodyId
Returns
number
b2
Body_
Get
Shapes
b2Body_GetShapes
(
_0
:
b2BodyId
,
_1
:
number
)
:
any
Parameters
_0
:
b2BodyId
_1
:
number
Returns
any
b2
Body_
Get
Sleep
Threshold
b2Body_GetSleepThreshold
(
_0
:
b2BodyId
)
:
number
Parameters
_0
:
b2BodyId
Returns
number
b2
Body_
Get
Transform
b2Body_GetTransform
(
_0
:
b2BodyId
)
:
b2Transform
Parameters
_0
:
b2BodyId
Returns
b2Transform
b2
Body_
Get
Type
b2Body_GetType
(
_0
:
b2BodyId
)
:
b2BodyType
Parameters
_0
:
b2BodyId
Returns
b2BodyType
b2
Body_
Get
World
b2Body_GetWorld
(
_0
:
b2BodyId
)
:
b2WorldId
Parameters
_0
:
b2BodyId
Returns
b2WorldId
b2
Body_
Get
World
Center
Of
Mass
b2Body_GetWorldCenterOfMass
(
_0
:
b2BodyId
)
:
b2Vec2
Parameters
_0
:
b2BodyId
Returns
b2Vec2
b2
Body_
Get
World
Point
b2Body_GetWorldPoint
(
_0
:
b2BodyId
,
_1
:
b2Vec2
)
:
b2Vec2
Parameters
_0
:
b2BodyId
_1
:
b2Vec2
Returns
b2Vec2
b2
Body_
Get
World
Point
Velocity
b2Body_GetWorldPointVelocity
(
_0
:
b2BodyId
,
_1
:
b2Vec2
)
:
b2Vec2
Parameters
_0
:
b2BodyId
_1
:
b2Vec2
Returns
b2Vec2
b2
Body_
Get
World
Vector
b2Body_GetWorldVector
(
_0
:
b2BodyId
,
_1
:
b2Vec2
)
:
b2Vec2
Parameters
_0
:
b2BodyId
_1
:
b2Vec2
Returns
b2Vec2
b2
Body_
Is
Awake
b2Body_IsAwake
(
_0
:
b2BodyId
)
:
boolean
Parameters
_0
:
b2BodyId
Returns
boolean
b2
Body_
Is
Bullet
b2Body_IsBullet
(
_0
:
b2BodyId
)
:
boolean
Parameters
_0
:
b2BodyId
Returns
boolean
b2
Body_
Is
Enabled
b2Body_IsEnabled
(
_0
:
b2BodyId
)
:
boolean
Parameters
_0
:
b2BodyId
Returns
boolean
b2
Body_
Is
Sleep
Enabled
b2Body_IsSleepEnabled
(
_0
:
b2BodyId
)
:
boolean
Parameters
_0
:
b2BodyId
Returns
boolean
b2
Body_
Is
Valid
b2Body_IsValid
(
_0
:
b2BodyId
)
:
boolean
Parameters
_0
:
b2BodyId
Returns
boolean
b2
Body_
Set
Angular
Damping
b2Body_SetAngularDamping
(
_0
:
b2BodyId
,
_1
:
number
)
:
void
Parameters
_0
:
b2BodyId
_1
:
number
Returns
void
b2
Body_
Set
Angular
Velocity
b2Body_SetAngularVelocity
(
_0
:
b2BodyId
,
_1
:
number
)
:
void
Parameters
_0
:
b2BodyId
_1
:
number
Returns
void
b2
Body_
Set
Awake
b2Body_SetAwake
(
_0
:
b2BodyId
,
_1
:
boolean
)
:
void
Parameters
_0
:
b2BodyId
_1
:
boolean
Returns
void
b2
Body_
Set
Bullet
b2Body_SetBullet
(
_0
:
b2BodyId
,
_1
:
boolean
)
:
void
Parameters
_0
:
b2BodyId
_1
:
boolean
Returns
void
b2
Body_
Set
Gravity
Scale
b2Body_SetGravityScale
(
_0
:
b2BodyId
,
_1
:
number
)
:
void
Parameters
_0
:
b2BodyId
_1
:
number
Returns
void
b2
Body_
Set
Linear
Damping
b2Body_SetLinearDamping
(
_0
:
b2BodyId
,
_1
:
number
)
:
void
Parameters
_0
:
b2BodyId
_1
:
number
Returns
void
b2
Body_
Set
Linear
Velocity
b2Body_SetLinearVelocity
(
_0
:
b2BodyId
,
_1
:
b2Vec2
)
:
void
Parameters
_0
:
b2BodyId
_1
:
b2Vec2
Returns
void
b2
Body_
Set
Mass
Data
b2Body_SetMassData
(
_0
:
b2BodyId
,
_1
:
b2MassData
)
:
void
Parameters
_0
:
b2BodyId
_1
:
b2MassData
Returns
void
b2
Body_
Set
Motion
Locks
b2Body_SetMotionLocks
(
_0
:
b2BodyId
,
_1
:
b2MotionLocks
)
:
void
Parameters
_0
:
b2BodyId
_1
:
b2MotionLocks
Returns
void
b2
Body_
Set
Sleep
Threshold
b2Body_SetSleepThreshold
(
_0
:
b2BodyId
,
_1
:
number
)
:
void
Parameters
_0
:
b2BodyId
_1
:
number
Returns
void
b2
Body_
Set
Target
Transform
b2Body_SetTargetTransform
(
_0
:
b2BodyId
,
_1
:
b2Transform
,
_2
:
number
)
:
void
Parameters
_0
:
b2BodyId
_1
:
b2Transform
_2
:
number
Returns
void
b2
Body_
Set
Transform
b2Body_SetTransform
(
_0
:
b2BodyId
,
_1
:
b2Vec2
,
_2
:
b2Rot
)
:
void
Parameters
_0
:
b2BodyId
_1
:
b2Vec2
_2
:
b2Rot
Returns
void
b2
Body_
Set
Type
b2Body_SetType
(
_0
:
b2BodyId
,
_1
:
b2BodyType
)
:
void
Parameters
_0
:
b2BodyId
_1
:
b2BodyType
Returns
void
b2
Chain_
Get
Segment
Count
b2Chain_GetSegmentCount
(
_0
:
b2ChainId
)
:
number
Parameters
_0
:
b2ChainId
Returns
number
b2
Chain_
Get
Segments
b2Chain_GetSegments
(
_0
:
b2ChainId
,
_1
:
number
)
:
any
Parameters
_0
:
b2ChainId
_1
:
number
Returns
any
b2
Chain_
Is
Valid
b2Chain_IsValid
(
_0
:
b2ChainId
)
:
boolean
Parameters
_0
:
b2ChainId
Returns
boolean
b2
Clamp
b2Clamp
(
_0
:
b2Vec2
,
_1
:
b2Vec2
,
_2
:
b2Vec2
)
:
b2Vec2
Parameters
_0
:
b2Vec2
_1
:
b2Vec2
_2
:
b2Vec2
Returns
b2Vec2
b2
Clip
Vector
b2ClipVector
(
_0
:
b2Vec2
,
_1
:
any
)
:
b2Vec2
Parameters
_0
:
b2Vec2
_1
:
any
Returns
b2Vec2
b2
Compute
Angular
Velocity
b2ComputeAngularVelocity
(
_0
:
b2Rot
,
_1
:
b2Rot
,
_2
:
number
)
:
number
Parameters
_0
:
b2Rot
_1
:
b2Rot
_2
:
number
Returns
number
b2
Compute
Capsule
AABB
b2ComputeCapsuleAABB
(
_0
:
b2Capsule
|
null
,
_1
:
b2Transform
)
:
b2AABB
Parameters
_0
:
b2Capsule
|
null
_1
:
b2Transform
Returns
b2AABB
b2
Compute
Capsule
Mass
b2ComputeCapsuleMass
(
_0
:
b2Capsule
|
null
,
_1
:
number
)
:
b2MassData
Parameters
_0
:
b2Capsule
|
null
_1
:
number
Returns
b2MassData
b2
Compute
Circle
AABB
b2ComputeCircleAABB
(
_0
:
b2Circle
|
null
,
_1
:
b2Transform
)
:
b2AABB
Parameters
_0
:
b2Circle
|
null
_1
:
b2Transform
Returns
b2AABB
b2
Compute
Circle
Mass
b2ComputeCircleMass
(
_0
:
b2Circle
|
null
,
_1
:
number
)
:
b2MassData
Parameters
_0
:
b2Circle
|
null
_1
:
number
Returns
b2MassData
b2
Compute
Hull
b2ComputeHull
(
_0
:
any
)
:
b2Hull
Parameters
_0
:
any
Returns
b2Hull
b2
Compute
Polygon
AABB
b2ComputePolygonAABB
(
_0
:
b2Polygon
|
null
,
_1
:
b2Transform
)
:
b2AABB
Parameters
_0
:
b2Polygon
|
null
_1
:
b2Transform
Returns
b2AABB
b2
Compute
Polygon
Mass
b2ComputePolygonMass
(
_0
:
b2Polygon
|
null
,
_1
:
number
)
:
b2MassData
Parameters
_0
:
b2Polygon
|
null
_1
:
number
Returns
b2MassData
b2
Compute
Segment
AABB
b2ComputeSegmentAABB
(
_0
:
b2Segment
|
null
,
_1
:
b2Transform
)
:
b2AABB
Parameters
_0
:
b2Segment
|
null
_1
:
b2Transform
Returns
b2AABB
b2
Create
Body
b2CreateBody
(
_0
:
b2WorldId
,
_1
:
b2BodyDef
|
null
)
:
b2BodyId
Parameters
_0
:
b2WorldId
_1
:
b2BodyDef
|
null
Returns
b2BodyId
b2
Create
Capsule
Shape
b2CreateCapsuleShape
(
_0
:
b2BodyId
,
_1
:
b2ShapeDef
|
null
,
_2
:
b2Capsule
|
null
,
)
:
b2ShapeId
Parameters
_0
:
b2BodyId
_1
:
b2ShapeDef
|
null
_2
:
b2Capsule
|
null
Returns
b2ShapeId
b2
Create
Chain
b2CreateChain
(
_0
:
b2BodyId
,
_1
:
b2ChainDef
|
null
)
:
b2ChainId
Parameters
_0
:
b2BodyId
_1
:
b2ChainDef
|
null
Returns
b2ChainId
b2
Create
Circle
Shape
b2CreateCircleShape
(
_0
:
b2BodyId
,
_1
:
b2ShapeDef
|
null
,
_2
:
b2Circle
|
null
,
)
:
b2ShapeId
Parameters
_0
:
b2BodyId
_1
:
b2ShapeDef
|
null
_2
:
b2Circle
|
null
Returns
b2ShapeId
b2
Create
Distance
Joint
b2CreateDistanceJoint
(
_0
:
b2WorldId
,
_1
:
b2DistanceJointDef
|
null
)
:
b2JointId
Parameters
_0
:
b2WorldId
_1
:
b2DistanceJointDef
|
null
Returns
b2JointId
b2
Create
Filter
Joint
b2CreateFilterJoint
(
_0
:
b2WorldId
,
_1
:
b2FilterJointDef
|
null
)
:
b2JointId
Parameters
_0
:
b2WorldId
_1
:
b2FilterJointDef
|
null
Returns
b2JointId
b2
Create
Motor
Joint
b2CreateMotorJoint
(
_0
:
b2WorldId
,
_1
:
b2MotorJointDef
|
null
)
:
b2JointId
Parameters
_0
:
b2WorldId
_1
:
b2MotorJointDef
|
null
Returns
b2JointId
b2
Create
Polygon
Shape
b2CreatePolygonShape
(
_0
:
b2BodyId
,
_1
:
b2ShapeDef
|
null
,
_2
:
b2Polygon
|
null
,
)
:
b2ShapeId
Parameters
_0
:
b2BodyId
_1
:
b2ShapeDef
|
null
_2
:
b2Polygon
|
null
Returns
b2ShapeId
b2
Create
Prismatic
Joint
b2CreatePrismaticJoint
(
_0
:
b2WorldId
,
_1
:
b2PrismaticJointDef
|
null
)
:
b2JointId
Parameters
_0
:
b2WorldId
_1
:
b2PrismaticJointDef
|
null
Returns
b2JointId
b2
Create
Revolute
Joint
b2CreateRevoluteJoint
(
_0
:
b2WorldId
,
_1
:
b2RevoluteJointDef
|
null
)
:
b2JointId
Parameters
_0
:
b2WorldId
_1
:
b2RevoluteJointDef
|
null
Returns
b2JointId
b2
Create
Segment
Shape
b2CreateSegmentShape
(
_0
:
b2BodyId
,
_1
:
b2ShapeDef
|
null
,
_2
:
b2Segment
|
null
,
)
:
b2ShapeId
Parameters
_0
:
b2BodyId
_1
:
b2ShapeDef
|
null
_2
:
b2Segment
|
null
Returns
b2ShapeId
b2
Create
Threaded
World
b2CreateThreadedWorld
(
_0
:
b2WorldDef
,
_1
:
TaskSystem
)
:
b2WorldId
Parameters
_0
:
b2WorldDef
_1
:
TaskSystem
Returns
b2WorldId
b2
Create
Weld
Joint
b2CreateWeldJoint
(
_0
:
b2WorldId
,
_1
:
b2WeldJointDef
|
null
)
:
b2JointId
Parameters
_0
:
b2WorldId
_1
:
b2WeldJointDef
|
null
Returns
b2JointId
b2
Create
Wheel
Joint
b2CreateWheelJoint
(
_0
:
b2WorldId
,
_1
:
b2WheelJointDef
|
null
)
:
b2JointId
Parameters
_0
:
b2WorldId
_1
:
b2WheelJointDef
|
null
Returns
b2JointId
b2
Create
World
b2CreateWorld
(
_0
:
b2WorldDef
|
null
)
:
b2WorldId
Parameters
_0
:
b2WorldDef
|
null
Returns
b2WorldId
b2
Cross
b2Cross
(
_0
:
b2Vec2
,
_1
:
b2Vec2
)
:
number
Parameters
_0
:
b2Vec2
_1
:
b2Vec2
Returns
number
b2
Cross
SV
b2CrossSV
(
_0
:
number
,
_1
:
b2Vec2
)
:
b2Vec2
Parameters
_0
:
number
_1
:
b2Vec2
Returns
b2Vec2
b2
Cross
VS
b2CrossVS
(
_0
:
b2Vec2
,
_1
:
number
)
:
b2Vec2
Parameters
_0
:
b2Vec2
_1
:
number
Returns
b2Vec2
b2
Default
Body
Def
b2DefaultBodyDef
()
:
b2BodyDef
Returns
b2BodyDef
b2
Default
Chain
Def
b2DefaultChainDef
()
:
b2ChainDef
Returns
b2ChainDef
b2
Default
Debug
Draw
b2DefaultDebugDraw
()
:
b2DebugDraw
Returns
b2DebugDraw
b2
Default
Distance
Joint
Def
b2DefaultDistanceJointDef
()
:
b2DistanceJointDef
Returns
b2DistanceJointDef
b2
Default
Explosion
Def
b2DefaultExplosionDef
()
:
b2ExplosionDef
Returns
b2ExplosionDef
b2
Default
Filter
Joint
Def
b2DefaultFilterJointDef
()
:
b2FilterJointDef
Returns
b2FilterJointDef
b2
Default
Motor
Joint
Def
b2DefaultMotorJointDef
()
:
b2MotorJointDef
Returns
b2MotorJointDef
b2
Default
Prismatic
Joint
Def
b2DefaultPrismaticJointDef
()
:
b2PrismaticJointDef
Returns
b2PrismaticJointDef
b2
Default
Query
Filter
b2DefaultQueryFilter
()
:
b2QueryFilter
Returns
b2QueryFilter
b2
Default
Revolute
Joint
Def
b2DefaultRevoluteJointDef
()
:
b2RevoluteJointDef
Returns
b2RevoluteJointDef
b2
Default
Shape
Def
b2DefaultShapeDef
()
:
b2ShapeDef
Returns
b2ShapeDef
b2
Default
Surface
Material
b2DefaultSurfaceMaterial
()
:
b2SurfaceMaterial
Returns
b2SurfaceMaterial
b2
Default
Weld
Joint
Def
b2DefaultWeldJointDef
()
:
b2WeldJointDef
Returns
b2WeldJointDef
b2
Default
Wheel
Joint
Def
b2DefaultWheelJointDef
()
:
b2WheelJointDef
Returns
b2WheelJointDef
b2
Default
World
Def
b2DefaultWorldDef
()
:
b2WorldDef
Returns
b2WorldDef
b2
Destroy
Body
b2DestroyBody
(
_0
:
b2BodyId
)
:
void
Parameters
_0
:
b2BodyId
Returns
void
b2
Destroy
Chain
b2DestroyChain
(
_0
:
b2ChainId
)
:
void
Parameters
_0
:
b2ChainId
Returns
void
b2
Destroy
Joint
b2DestroyJoint
(
_0
:
b2JointId
,
_1
:
boolean
)
:
void
Parameters
_0
:
b2JointId
_1
:
boolean
Returns
void
b2
Destroy
Shape
b2DestroyShape
(
_0
:
b2ShapeId
,
_1
:
boolean
)
:
void
Parameters
_0
:
b2ShapeId
_1
:
boolean
Returns
void
b2
Destroy
World
b2DestroyWorld
(
_0
:
b2WorldId
)
:
void
Parameters
_0
:
b2WorldId
Returns
void
b2
Distance
b2Distance
(
_0
:
b2Vec2
,
_1
:
b2Vec2
)
:
number
Parameters
_0
:
b2Vec2
_1
:
b2Vec2
Returns
number
b2
Distance
Joint_
Enable
Limit
b2DistanceJoint_EnableLimit
(
_0
:
b2JointId
,
_1
:
boolean
)
:
void
Parameters
_0
:
b2JointId
_1
:
boolean
Returns
void
b2
Distance
Joint_
Enable
Motor
b2DistanceJoint_EnableMotor
(
_0
:
b2JointId
,
_1
:
boolean
)
:
void
Parameters
_0
:
b2JointId
_1
:
boolean
Returns
void
b2
Distance
Joint_
Enable
Spring
b2DistanceJoint_EnableSpring
(
_0
:
b2JointId
,
_1
:
boolean
)
:
void
Parameters
_0
:
b2JointId
_1
:
boolean
Returns
void
b2
Distance
Joint_
Get
Current
Length
b2DistanceJoint_GetCurrentLength
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Distance
Joint_
Get
Length
b2DistanceJoint_GetLength
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Distance
Joint_
Get
Max
Length
b2DistanceJoint_GetMaxLength
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Distance
Joint_
Get
Max
Motor
Force
b2DistanceJoint_GetMaxMotorForce
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Distance
Joint_
Get
Min
Length
b2DistanceJoint_GetMinLength
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Distance
Joint_
Get
Motor
Force
b2DistanceJoint_GetMotorForce
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Distance
Joint_
Get
Motor
Speed
b2DistanceJoint_GetMotorSpeed
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Distance
Joint_
Get
Spring
Damping
Ratio
b2DistanceJoint_GetSpringDampingRatio
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Distance
Joint_
Get
Spring
Hertz
b2DistanceJoint_GetSpringHertz
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Distance
Joint_
Is
Limit
Enabled
b2DistanceJoint_IsLimitEnabled
(
_0
:
b2JointId
)
:
boolean
Parameters
_0
:
b2JointId
Returns
boolean
b2
Distance
Joint_
Is
Motor
Enabled
b2DistanceJoint_IsMotorEnabled
(
_0
:
b2JointId
)
:
boolean
Parameters
_0
:
b2JointId
Returns
boolean
b2
Distance
Joint_
Is
Spring
Enabled
b2DistanceJoint_IsSpringEnabled
(
_0
:
b2JointId
)
:
boolean
Parameters
_0
:
b2JointId
Returns
boolean
b2
Distance
Joint_
Set
Length
b2DistanceJoint_SetLength
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Distance
Joint_
Set
Length
Range
b2DistanceJoint_SetLengthRange
(
_0
:
b2JointId
,
_1
:
number
,
_2
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
_2
:
number
Returns
void
b2
Distance
Joint_
Set
Max
Motor
Force
b2DistanceJoint_SetMaxMotorForce
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Distance
Joint_
Set
Motor
Speed
b2DistanceJoint_SetMotorSpeed
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Distance
Joint_
Set
Spring
Damping
Ratio
b2DistanceJoint_SetSpringDampingRatio
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Distance
Joint_
Set
Spring
Hertz
b2DistanceJoint_SetSpringHertz
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Distance
Squared
b2DistanceSquared
(
_0
:
b2Vec2
,
_1
:
b2Vec2
)
:
number
Parameters
_0
:
b2Vec2
_1
:
b2Vec2
Returns
number
b2
Dot
b2Dot
(
_0
:
b2Vec2
,
_1
:
b2Vec2
)
:
number
Parameters
_0
:
b2Vec2
_1
:
b2Vec2
Returns
number
b2
Get
Inverse22
b2GetInverse22
(
_0
:
b2Mat22
)
:
b2Mat22
Parameters
_0
:
b2Mat22
Returns
b2Mat22
b2
Hash
b2Hash
(
_0
:
number
,
_1
:
any
)
:
number
Parameters
_0
:
number
_1
:
any
Returns
number
b2
Integrate
Rotation
b2IntegrateRotation
(
_0
:
b2Rot
,
_1
:
number
)
:
b2Rot
Parameters
_0
:
b2Rot
_1
:
number
Returns
b2Rot
b2
Inv
Mul
Rot
b2InvMulRot
(
_0
:
b2Rot
,
_1
:
b2Rot
)
:
b2Rot
Parameters
_0
:
b2Rot
_1
:
b2Rot
Returns
b2Rot
b2
Inv
Mul
Transforms
b2InvMulTransforms
(
_0
:
b2Transform
,
_1
:
b2Transform
)
:
b2Transform
Parameters
_0
:
b2Transform
_1
:
b2Transform
Returns
b2Transform
b2
Inv
Rotate
Vector
b2InvRotateVector
(
_0
:
b2Rot
,
_1
:
b2Vec2
)
:
b2Vec2
Parameters
_0
:
b2Rot
_1
:
b2Vec2
Returns
b2Vec2
b2
Inv
Transform
Point
b2InvTransformPoint
(
_0
:
b2Transform
,
_1
:
b2Vec2
)
:
b2Vec2
Parameters
_0
:
b2Transform
_1
:
b2Vec2
Returns
b2Vec2
b2
Is
Normalized
b2IsNormalized
(
_0
:
b2Vec2
)
:
boolean
Parameters
_0
:
b2Vec2
Returns
boolean
b2
Is
Valid
Plane
b2IsValidPlane
(
_0
:
b2Plane
)
:
boolean
Parameters
_0
:
b2Plane
Returns
boolean
b2
Is
Valid
Ray
b2IsValidRay
(
_0
:
b2RayCastInput
|
null
)
:
boolean
Parameters
_0
:
b2RayCastInput
|
null
Returns
boolean
b2
Joint_
Get
Body
A
b2Joint_GetBodyA
(
_0
:
b2JointId
)
:
b2BodyId
Parameters
_0
:
b2JointId
Returns
b2BodyId
b2
Joint_
Get
Body
B
b2Joint_GetBodyB
(
_0
:
b2JointId
)
:
b2BodyId
Parameters
_0
:
b2JointId
Returns
b2BodyId
b2
Joint_
Get
Collide
Connected
b2Joint_GetCollideConnected
(
_0
:
b2JointId
)
:
boolean
Parameters
_0
:
b2JointId
Returns
boolean
b2
Joint_
Get
Constraint
Force
b2Joint_GetConstraintForce
(
_0
:
b2JointId
)
:
b2Vec2
Parameters
_0
:
b2JointId
Returns
b2Vec2
b2
Joint_
Get
Constraint
Torque
b2Joint_GetConstraintTorque
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Joint_
Get
Force
Threshold
b2Joint_GetForceThreshold
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Joint_
Get
Local
Frame
A
b2Joint_GetLocalFrameA
(
_0
:
b2JointId
)
:
b2Transform
Parameters
_0
:
b2JointId
Returns
b2Transform
b2
Joint_
Get
Local
Frame
B
b2Joint_GetLocalFrameB
(
_0
:
b2JointId
)
:
b2Transform
Parameters
_0
:
b2JointId
Returns
b2Transform
b2
Joint_
Get
Pointer
b2Joint_GetPointer
(
_0
:
b2JointId
)
:
any
Parameters
_0
:
b2JointId
Returns
any
b2
Joint_
Get
Torque
Threshold
b2Joint_GetTorqueThreshold
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Joint_
Get
Type
b2Joint_GetType
(
_0
:
b2JointId
)
:
b2JointType
Parameters
_0
:
b2JointId
Returns
b2JointType
b2
Joint_
Get
World
b2Joint_GetWorld
(
_0
:
b2JointId
)
:
b2WorldId
Parameters
_0
:
b2JointId
Returns
b2WorldId
b2
Joint_
Is
Valid
b2Joint_IsValid
(
_0
:
b2JointId
)
:
boolean
Parameters
_0
:
b2JointId
Returns
boolean
b2
Joint_
Set
Collide
Connected
b2Joint_SetCollideConnected
(
_0
:
b2JointId
,
_1
:
boolean
)
:
void
Parameters
_0
:
b2JointId
_1
:
boolean
Returns
void
b2
Joint_
Set
Force
Threshold
b2Joint_SetForceThreshold
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Joint_
Set
Local
Frame
A
b2Joint_SetLocalFrameA
(
_0
:
b2JointId
,
_1
:
b2Transform
)
:
void
Parameters
_0
:
b2JointId
_1
:
b2Transform
Returns
void
b2
Joint_
Set
Local
Frame
B
b2Joint_SetLocalFrameB
(
_0
:
b2JointId
,
_1
:
b2Transform
)
:
void
Parameters
_0
:
b2JointId
_1
:
b2Transform
Returns
void
b2
Joint_
Set
Torque
Threshold
b2Joint_SetTorqueThreshold
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Joint_
Wake
Bodies
b2Joint_WakeBodies
(
_0
:
b2JointId
)
:
void
Parameters
_0
:
b2JointId
Returns
void
b2
Left
Perp
b2LeftPerp
(
_0
:
b2Vec2
)
:
b2Vec2
Parameters
_0
:
b2Vec2
Returns
b2Vec2
b2
Length
b2Length
(
_0
:
b2Vec2
)
:
number
Parameters
_0
:
b2Vec2
Returns
number
b2
Length
Squared
b2LengthSquared
(
_0
:
b2Vec2
)
:
number
Parameters
_0
:
b2Vec2
Returns
number
b2
Lerp
b2Lerp
(
_0
:
b2Vec2
,
_1
:
b2Vec2
,
_2
:
number
)
:
b2Vec2
Parameters
_0
:
b2Vec2
_1
:
b2Vec2
_2
:
number
Returns
b2Vec2
b2
Make
Box
b2MakeBox
(
_0
:
number
,
_1
:
number
)
:
b2Polygon
Parameters
_0
:
number
_1
:
number
Returns
b2Polygon
b2
Make
Offset
Box
b2MakeOffsetBox
(
_0
:
number
,
_1
:
number
,
_2
:
b2Vec2
,
_3
:
b2Rot
)
:
b2Polygon
Parameters
_0
:
number
_1
:
number
_2
:
b2Vec2
_3
:
b2Rot
Returns
b2Polygon
b2
Make
Offset
Polygon
b2MakeOffsetPolygon
(
_0
:
b2Hull
|
null
,
_1
:
b2Vec2
,
_2
:
b2Rot
)
:
b2Polygon
Parameters
_0
:
b2Hull
|
null
_1
:
b2Vec2
_2
:
b2Rot
Returns
b2Polygon
b2
Make
Offset
Proxy
b2MakeOffsetProxy
(
_0
:
b2Vec2
|
null
,
_1
:
number
,
_2
:
number
,
_3
:
b2Vec2
,
_4
:
b2Rot
,
)
:
b2ShapeProxy
Parameters
_0
:
b2Vec2
|
null
_1
:
number
_2
:
number
_3
:
b2Vec2
_4
:
b2Rot
Returns
b2ShapeProxy
b2
Make
Offset
Rounded
Box
b2MakeOffsetRoundedBox
(
_0
:
number
,
_1
:
number
,
_2
:
b2Vec2
,
_3
:
b2Rot
,
_4
:
number
,
)
:
b2Polygon
Parameters
_0
:
number
_1
:
number
_2
:
b2Vec2
_3
:
b2Rot
_4
:
number
Returns
b2Polygon
b2
Make
Offset
Rounded
Polygon
b2MakeOffsetRoundedPolygon
(
_0
:
b2Hull
|
null
,
_1
:
b2Vec2
,
_2
:
b2Rot
,
_3
:
number
,
)
:
b2Polygon
Parameters
_0
:
b2Hull
|
null
_1
:
b2Vec2
_2
:
b2Rot
_3
:
number
Returns
b2Polygon
b2
Make
Polygon
b2MakePolygon
(
_0
:
b2Hull
|
null
,
_1
:
number
)
:
b2Polygon
Parameters
_0
:
b2Hull
|
null
_1
:
number
Returns
b2Polygon
b2
Make
Proxy
b2MakeProxy
(
_0
:
b2Vec2
|
null
,
_1
:
number
,
_2
:
number
)
:
b2ShapeProxy
Parameters
_0
:
b2Vec2
|
null
_1
:
number
_2
:
number
Returns
b2ShapeProxy
b2
Make
Rot
b2MakeRot
(
_0
:
number
)
:
b2Rot
Parameters
_0
:
number
Returns
b2Rot
b2
Make
Rounded
Box
b2MakeRoundedBox
(
_0
:
number
,
_1
:
number
,
_2
:
number
)
:
b2Polygon
Parameters
_0
:
number
_1
:
number
_2
:
number
Returns
b2Polygon
b2
Make
Square
b2MakeSquare
(
_0
:
number
)
:
b2Polygon
Parameters
_0
:
number
Returns
b2Polygon
b2
Max
b2Max
(
_0
:
b2Vec2
,
_1
:
b2Vec2
)
:
b2Vec2
Parameters
_0
:
b2Vec2
_1
:
b2Vec2
Returns
b2Vec2
b2
Max
Float
b2MaxFloat
(
_0
:
number
,
_1
:
number
)
:
number
Parameters
_0
:
number
_1
:
number
Returns
number
b2
Min
b2Min
(
_0
:
b2Vec2
,
_1
:
b2Vec2
)
:
b2Vec2
Parameters
_0
:
b2Vec2
_1
:
b2Vec2
Returns
b2Vec2
b2
Motor
Joint_
Get
Angular
Damping
Ratio
b2MotorJoint_GetAngularDampingRatio
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Motor
Joint_
Get
Angular
Hertz
b2MotorJoint_GetAngularHertz
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Motor
Joint_
Get
Angular
Velocity
b2MotorJoint_GetAngularVelocity
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Motor
Joint_
Get
Linear
Damping
Ratio
b2MotorJoint_GetLinearDampingRatio
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Motor
Joint_
Get
Linear
Hertz
b2MotorJoint_GetLinearHertz
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Motor
Joint_
Get
Linear
Velocity
b2MotorJoint_GetLinearVelocity
(
_0
:
b2JointId
)
:
b2Vec2
Parameters
_0
:
b2JointId
Returns
b2Vec2
b2
Motor
Joint_
Get
Max
Spring
Force
b2MotorJoint_GetMaxSpringForce
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Motor
Joint_
Get
Max
Spring
Torque
b2MotorJoint_GetMaxSpringTorque
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Motor
Joint_
Get
Max
Velocity
Force
b2MotorJoint_GetMaxVelocityForce
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Motor
Joint_
Get
Max
Velocity
Torque
b2MotorJoint_GetMaxVelocityTorque
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Motor
Joint_
Set
Angular
Damping
Ratio
b2MotorJoint_SetAngularDampingRatio
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Motor
Joint_
Set
Angular
Hertz
b2MotorJoint_SetAngularHertz
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Motor
Joint_
Set
Angular
Velocity
b2MotorJoint_SetAngularVelocity
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Motor
Joint_
Set
Linear
Damping
Ratio
b2MotorJoint_SetLinearDampingRatio
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Motor
Joint_
Set
Linear
Hertz
b2MotorJoint_SetLinearHertz
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Motor
Joint_
Set
Linear
Velocity
b2MotorJoint_SetLinearVelocity
(
_0
:
b2JointId
,
_1
:
b2Vec2
)
:
void
Parameters
_0
:
b2JointId
_1
:
b2Vec2
Returns
void
b2
Motor
Joint_
Set
Max
Spring
Force
b2MotorJoint_SetMaxSpringForce
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Motor
Joint_
Set
Max
Spring
Torque
b2MotorJoint_SetMaxSpringTorque
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Motor
Joint_
Set
Max
Velocity
Force
b2MotorJoint_SetMaxVelocityForce
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Motor
Joint_
Set
Max
Velocity
Torque
b2MotorJoint_SetMaxVelocityTorque
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Mul
b2Mul
(
_0
:
b2Vec2
,
_1
:
b2Vec2
)
:
b2Vec2
Parameters
_0
:
b2Vec2
_1
:
b2Vec2
Returns
b2Vec2
b2
Mul
Add
b2MulAdd
(
_0
:
b2Vec2
,
_1
:
number
,
_2
:
b2Vec2
)
:
b2Vec2
Parameters
_0
:
b2Vec2
_1
:
number
_2
:
b2Vec2
Returns
b2Vec2
b2
Mul
MV
b2MulMV
(
_0
:
b2Mat22
,
_1
:
b2Vec2
)
:
b2Vec2
Parameters
_0
:
b2Mat22
_1
:
b2Vec2
Returns
b2Vec2
b2
Mul
Rot
b2MulRot
(
_0
:
b2Rot
,
_1
:
b2Rot
)
:
b2Rot
Parameters
_0
:
b2Rot
_1
:
b2Rot
Returns
b2Rot
b2
Mul
Sub
b2MulSub
(
_0
:
b2Vec2
,
_1
:
number
,
_2
:
b2Vec2
)
:
b2Vec2
Parameters
_0
:
b2Vec2
_1
:
number
_2
:
b2Vec2
Returns
b2Vec2
b2
Mul
SV
b2MulSV
(
_0
:
number
,
_1
:
b2Vec2
)
:
b2Vec2
Parameters
_0
:
number
_1
:
b2Vec2
Returns
b2Vec2
b2
Mul
Transforms
b2MulTransforms
(
_0
:
b2Transform
,
_1
:
b2Transform
)
:
b2Transform
Parameters
_0
:
b2Transform
_1
:
b2Transform
Returns
b2Transform
b2
Neg
b2Neg
(
_0
:
b2Vec2
)
:
b2Vec2
Parameters
_0
:
b2Vec2
Returns
b2Vec2
b2
N
Lerp
b2NLerp
(
_0
:
b2Rot
,
_1
:
b2Rot
,
_2
:
number
)
:
b2Rot
Parameters
_0
:
b2Rot
_1
:
b2Rot
_2
:
number
Returns
b2Rot
b2
Normalize
b2Normalize
(
_0
:
b2Vec2
)
:
b2Vec2
Parameters
_0
:
b2Vec2
Returns
b2Vec2
b2
Normalize
Rot
b2NormalizeRot
(
_0
:
b2Rot
)
:
b2Rot
Parameters
_0
:
b2Rot
Returns
b2Rot
b2
Point
In
Capsule
b2PointInCapsule
(
_0
:
b2Capsule
|
null
,
_1
:
b2Vec2
)
:
boolean
Parameters
_0
:
b2Capsule
|
null
_1
:
b2Vec2
Returns
boolean
b2
Point
In
Circle
b2PointInCircle
(
_0
:
b2Circle
|
null
,
_1
:
b2Vec2
)
:
boolean
Parameters
_0
:
b2Circle
|
null
_1
:
b2Vec2
Returns
boolean
b2
Point
In
Polygon
b2PointInPolygon
(
_0
:
b2Polygon
|
null
,
_1
:
b2Vec2
)
:
boolean
Parameters
_0
:
b2Polygon
|
null
_1
:
b2Vec2
Returns
boolean
b2
Prismatic
Joint_
Enable
Limit
b2PrismaticJoint_EnableLimit
(
_0
:
b2JointId
,
_1
:
boolean
)
:
void
Parameters
_0
:
b2JointId
_1
:
boolean
Returns
void
b2
Prismatic
Joint_
Enable
Motor
b2PrismaticJoint_EnableMotor
(
_0
:
b2JointId
,
_1
:
boolean
)
:
void
Parameters
_0
:
b2JointId
_1
:
boolean
Returns
void
b2
Prismatic
Joint_
Enable
Spring
b2PrismaticJoint_EnableSpring
(
_0
:
b2JointId
,
_1
:
boolean
)
:
void
Parameters
_0
:
b2JointId
_1
:
boolean
Returns
void
b2
Prismatic
Joint_
Get
Lower
Limit
b2PrismaticJoint_GetLowerLimit
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Prismatic
Joint_
Get
Max
Motor
Force
b2PrismaticJoint_GetMaxMotorForce
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Prismatic
Joint_
Get
Motor
Force
b2PrismaticJoint_GetMotorForce
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Prismatic
Joint_
Get
Motor
Speed
b2PrismaticJoint_GetMotorSpeed
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Prismatic
Joint_
Get
Speed
b2PrismaticJoint_GetSpeed
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Prismatic
Joint_
Get
Spring
Damping
Ratio
b2PrismaticJoint_GetSpringDampingRatio
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Prismatic
Joint_
Get
Spring
Hertz
b2PrismaticJoint_GetSpringHertz
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Prismatic
Joint_
Get
Translation
b2PrismaticJoint_GetTranslation
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Prismatic
Joint_
Get
Upper
Limit
b2PrismaticJoint_GetUpperLimit
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Prismatic
Joint_
Is
Limit
Enabled
b2PrismaticJoint_IsLimitEnabled
(
_0
:
b2JointId
)
:
boolean
Parameters
_0
:
b2JointId
Returns
boolean
b2
Prismatic
Joint_
Is
Motor
Enabled
b2PrismaticJoint_IsMotorEnabled
(
_0
:
b2JointId
)
:
boolean
Parameters
_0
:
b2JointId
Returns
boolean
b2
Prismatic
Joint_
Is
Spring
Enabled
b2PrismaticJoint_IsSpringEnabled
(
_0
:
b2JointId
)
:
boolean
Parameters
_0
:
b2JointId
Returns
boolean
b2
Prismatic
Joint_
Set
Limits
b2PrismaticJoint_SetLimits
(
_0
:
b2JointId
,
_1
:
number
,
_2
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
_2
:
number
Returns
void
b2
Prismatic
Joint_
Set
Max
Motor
Force
b2PrismaticJoint_SetMaxMotorForce
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Prismatic
Joint_
Set
Motor
Speed
b2PrismaticJoint_SetMotorSpeed
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Prismatic
Joint_
Set
Spring
Damping
Ratio
b2PrismaticJoint_SetSpringDampingRatio
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Prismatic
Joint_
Set
Spring
Hertz
b2PrismaticJoint_SetSpringHertz
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Relative
Angle
b2RelativeAngle
(
_0
:
b2Rot
,
_1
:
b2Rot
)
:
number
Parameters
_0
:
b2Rot
_1
:
b2Rot
Returns
number
b2
Revolute
Joint_
Enable
Limit
b2RevoluteJoint_EnableLimit
(
_0
:
b2JointId
,
_1
:
boolean
)
:
void
Parameters
_0
:
b2JointId
_1
:
boolean
Returns
void
b2
Revolute
Joint_
Enable
Motor
b2RevoluteJoint_EnableMotor
(
_0
:
b2JointId
,
_1
:
boolean
)
:
void
Parameters
_0
:
b2JointId
_1
:
boolean
Returns
void
b2
Revolute
Joint_
Enable
Spring
b2RevoluteJoint_EnableSpring
(
_0
:
b2JointId
,
_1
:
boolean
)
:
void
Parameters
_0
:
b2JointId
_1
:
boolean
Returns
void
b2
Revolute
Joint_
Get
Angle
b2RevoluteJoint_GetAngle
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Revolute
Joint_
Get
Lower
Limit
b2RevoluteJoint_GetLowerLimit
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Revolute
Joint_
Get
Max
Motor
Torque
b2RevoluteJoint_GetMaxMotorTorque
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Revolute
Joint_
Get
Motor
Speed
b2RevoluteJoint_GetMotorSpeed
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Revolute
Joint_
Get
Motor
Torque
b2RevoluteJoint_GetMotorTorque
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Revolute
Joint_
Get
Spring
Damping
Ratio
b2RevoluteJoint_GetSpringDampingRatio
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Revolute
Joint_
Get
Spring
Hertz
b2RevoluteJoint_GetSpringHertz
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Revolute
Joint_
Get
Upper
Limit
b2RevoluteJoint_GetUpperLimit
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Revolute
Joint_
Is
Limit
Enabled
b2RevoluteJoint_IsLimitEnabled
(
_0
:
b2JointId
)
:
boolean
Parameters
_0
:
b2JointId
Returns
boolean
b2
Revolute
Joint_
Is
Motor
Enabled
b2RevoluteJoint_IsMotorEnabled
(
_0
:
b2JointId
)
:
boolean
Parameters
_0
:
b2JointId
Returns
boolean
b2
Revolute
Joint_
Is
Spring
Enabled
b2RevoluteJoint_IsSpringEnabled
(
_0
:
b2JointId
)
:
boolean
Parameters
_0
:
b2JointId
Returns
boolean
b2
Revolute
Joint_
Set
Limits
b2RevoluteJoint_SetLimits
(
_0
:
b2JointId
,
_1
:
number
,
_2
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
_2
:
number
Returns
void
b2
Revolute
Joint_
Set
Max
Motor
Torque
b2RevoluteJoint_SetMaxMotorTorque
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Revolute
Joint_
Set
Motor
Speed
b2RevoluteJoint_SetMotorSpeed
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Revolute
Joint_
Set
Spring
Damping
Ratio
b2RevoluteJoint_SetSpringDampingRatio
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Revolute
Joint_
Set
Spring
Hertz
b2RevoluteJoint_SetSpringHertz
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Right
Perp
b2RightPerp
(
_0
:
b2Vec2
)
:
b2Vec2
Parameters
_0
:
b2Vec2
Returns
b2Vec2
b2
Rot_
Get
Angle
b2Rot_GetAngle
(
_0
:
b2Rot
)
:
number
Parameters
_0
:
b2Rot
Returns
number
b2
Rot_
Get
X
Axis
b2Rot_GetXAxis
(
_0
:
b2Rot
)
:
b2Vec2
Parameters
_0
:
b2Rot
Returns
b2Vec2
b2
Rot_
Get
Y
Axis
b2Rot_GetYAxis
(
_0
:
b2Rot
)
:
b2Vec2
Parameters
_0
:
b2Rot
Returns
b2Vec2
b2
Rotate
Vector
b2RotateVector
(
_0
:
b2Rot
,
_1
:
b2Vec2
)
:
b2Vec2
Parameters
_0
:
b2Rot
_1
:
b2Vec2
Returns
b2Vec2
b2
Shape_
Apply
Wind
b2Shape_ApplyWind
(
_0
:
b2ShapeId
,
_1
:
b2Vec2
,
_2
:
number
,
_3
:
number
,
_4
:
boolean
,
)
:
void
Parameters
_0
:
b2ShapeId
_1
:
b2Vec2
_2
:
number
_3
:
number
_4
:
boolean
Returns
void
b2
Shape_
Are
Contact
Events
Enabled
b2Shape_AreContactEventsEnabled
(
_0
:
b2ShapeId
)
:
boolean
Parameters
_0
:
b2ShapeId
Returns
boolean
b2
Shape_
Are
Hit
Events
Enabled
b2Shape_AreHitEventsEnabled
(
_0
:
b2ShapeId
)
:
boolean
Parameters
_0
:
b2ShapeId
Returns
boolean
b2
Shape_
Are
Pre
Solve
Events
Enabled
b2Shape_ArePreSolveEventsEnabled
(
_0
:
b2ShapeId
)
:
boolean
Parameters
_0
:
b2ShapeId
Returns
boolean
b2
Shape_
Are
Sensor
Events
Enabled
b2Shape_AreSensorEventsEnabled
(
_0
:
b2ShapeId
)
:
boolean
Parameters
_0
:
b2ShapeId
Returns
boolean
b2
Shape_
Compute
Mass
Data
b2Shape_ComputeMassData
(
_0
:
b2ShapeId
)
:
b2MassData
Parameters
_0
:
b2ShapeId
Returns
b2MassData
b2
Shape_
Enable
Contact
Events
b2Shape_EnableContactEvents
(
_0
:
b2ShapeId
,
_1
:
boolean
)
:
void
Parameters
_0
:
b2ShapeId
_1
:
boolean
Returns
void
b2
Shape_
Enable
Hit
Events
b2Shape_EnableHitEvents
(
_0
:
b2ShapeId
,
_1
:
boolean
)
:
void
Parameters
_0
:
b2ShapeId
_1
:
boolean
Returns
void
b2
Shape_
Enable
Pre
Solve
Events
b2Shape_EnablePreSolveEvents
(
_0
:
b2ShapeId
,
_1
:
boolean
)
:
void
Parameters
_0
:
b2ShapeId
_1
:
boolean
Returns
void
b2
Shape_
Enable
Sensor
Events
b2Shape_EnableSensorEvents
(
_0
:
b2ShapeId
,
_1
:
boolean
)
:
void
Parameters
_0
:
b2ShapeId
_1
:
boolean
Returns
void
b2
Shape_
Get
AABB
b2Shape_GetAABB
(
_0
:
b2ShapeId
)
:
b2AABB
Parameters
_0
:
b2ShapeId
Returns
b2AABB
b2
Shape_
Get
Body
b2Shape_GetBody
(
_0
:
b2ShapeId
)
:
b2BodyId
Parameters
_0
:
b2ShapeId
Returns
b2BodyId
b2
Shape_
Get
Capsule
b2Shape_GetCapsule
(
_0
:
b2ShapeId
)
:
b2Capsule
Parameters
_0
:
b2ShapeId
Returns
b2Capsule
b2
Shape_
Get
Chain
Segment
b2Shape_GetChainSegment
(
_0
:
b2ShapeId
)
:
b2ChainSegment
Parameters
_0
:
b2ShapeId
Returns
b2ChainSegment
b2
Shape_
Get
Circle
b2Shape_GetCircle
(
_0
:
b2ShapeId
)
:
b2Circle
Parameters
_0
:
b2ShapeId
Returns
b2Circle
b2
Shape_
Get
Closest
Point
b2Shape_GetClosestPoint
(
_0
:
b2ShapeId
,
_1
:
b2Vec2
)
:
b2Vec2
Parameters
_0
:
b2ShapeId
_1
:
b2Vec2
Returns
b2Vec2
b2
Shape_
Get
Contact
Capacity
b2Shape_GetContactCapacity
(
_0
:
b2ShapeId
)
:
number
Parameters
_0
:
b2ShapeId
Returns
number
b2
Shape_
Get
Contact
Data
b2Shape_GetContactData
(
_0
:
b2ShapeId
,
_1
:
number
)
:
any
Parameters
_0
:
b2ShapeId
_1
:
number
Returns
any
b2
Shape_
Get
Density
b2Shape_GetDensity
(
_0
:
b2ShapeId
)
:
number
Parameters
_0
:
b2ShapeId
Returns
number
b2
Shape_
Get
Filter
b2Shape_GetFilter
(
_0
:
b2ShapeId
)
:
b2Filter
Parameters
_0
:
b2ShapeId
Returns
b2Filter
b2
Shape_
Get
Friction
b2Shape_GetFriction
(
_0
:
b2ShapeId
)
:
number
Parameters
_0
:
b2ShapeId
Returns
number
b2
Shape_
Get
Parent
Chain
b2Shape_GetParentChain
(
_0
:
b2ShapeId
)
:
b2ChainId
Parameters
_0
:
b2ShapeId
Returns
b2ChainId
b2
Shape_
Get
Pointer
b2Shape_GetPointer
(
_0
:
b2ShapeId
)
:
any
Parameters
_0
:
b2ShapeId
Returns
any
b2
Shape_
Get
Polygon
b2Shape_GetPolygon
(
_0
:
b2ShapeId
)
:
b2Polygon
Parameters
_0
:
b2ShapeId
Returns
b2Polygon
b2
Shape_
Get
Restitution
b2Shape_GetRestitution
(
_0
:
b2ShapeId
)
:
number
Parameters
_0
:
b2ShapeId
Returns
number
b2
Shape_
Get
Segment
b2Shape_GetSegment
(
_0
:
b2ShapeId
)
:
b2Segment
Parameters
_0
:
b2ShapeId
Returns
b2Segment
b2
Shape_
Get
Sensor
Capacity
b2Shape_GetSensorCapacity
(
_0
:
b2ShapeId
)
:
number
Parameters
_0
:
b2ShapeId
Returns
number
b2
Shape_
Get
Sensor
Data
b2Shape_GetSensorData
(
_0
:
b2ShapeId
,
_1
:
number
)
:
any
Parameters
_0
:
b2ShapeId
_1
:
number
Returns
any
b2
Shape_
Get
Surface
Material
b2Shape_GetSurfaceMaterial
(
_0
:
b2ShapeId
)
:
b2SurfaceMaterial
Parameters
_0
:
b2ShapeId
Returns
b2SurfaceMaterial
b2
Shape_
Get
Type
b2Shape_GetType
(
_0
:
b2ShapeId
)
:
b2ShapeType
Parameters
_0
:
b2ShapeId
Returns
b2ShapeType
b2
Shape_
Get
World
b2Shape_GetWorld
(
_0
:
b2ShapeId
)
:
b2WorldId
Parameters
_0
:
b2ShapeId
Returns
b2WorldId
b2
Shape_
Is
Sensor
b2Shape_IsSensor
(
_0
:
b2ShapeId
)
:
boolean
Parameters
_0
:
b2ShapeId
Returns
boolean
b2
Shape_
Is
Valid
b2Shape_IsValid
(
_0
:
b2ShapeId
)
:
boolean
Parameters
_0
:
b2ShapeId
Returns
boolean
b2
Shape_
Ray
Cast
b2Shape_RayCast
(
_0
:
b2ShapeId
,
_1
:
b2RayCastInput
|
null
)
:
b2CastOutput
Parameters
_0
:
b2ShapeId
_1
:
b2RayCastInput
|
null
Returns
b2CastOutput
b2
Shape_
Set
Capsule
b2Shape_SetCapsule
(
_0
:
b2ShapeId
,
_1
:
b2Capsule
|
null
)
:
void
Parameters
_0
:
b2ShapeId
_1
:
b2Capsule
|
null
Returns
void
b2
Shape_
Set
Circle
b2Shape_SetCircle
(
_0
:
b2ShapeId
,
_1
:
b2Circle
|
null
)
:
void
Parameters
_0
:
b2ShapeId
_1
:
b2Circle
|
null
Returns
void
b2
Shape_
Set
Density
b2Shape_SetDensity
(
_0
:
b2ShapeId
,
_1
:
number
,
_2
:
boolean
)
:
void
Parameters
_0
:
b2ShapeId
_1
:
number
_2
:
boolean
Returns
void
b2
Shape_
Set
Filter
b2Shape_SetFilter
(
_0
:
b2ShapeId
,
_1
:
b2Filter
)
:
void
Parameters
_0
:
b2ShapeId
_1
:
b2Filter
Returns
void
b2
Shape_
Set
Friction
b2Shape_SetFriction
(
_0
:
b2ShapeId
,
_1
:
number
)
:
void
Parameters
_0
:
b2ShapeId
_1
:
number
Returns
void
b2
Shape_
Set
Polygon
b2Shape_SetPolygon
(
_0
:
b2ShapeId
,
_1
:
b2Polygon
|
null
)
:
void
Parameters
_0
:
b2ShapeId
_1
:
b2Polygon
|
null
Returns
void
b2
Shape_
Set
Restitution
b2Shape_SetRestitution
(
_0
:
b2ShapeId
,
_1
:
number
)
:
void
Parameters
_0
:
b2ShapeId
_1
:
number
Returns
void
b2
Shape_
Set
Segment
b2Shape_SetSegment
(
_0
:
b2ShapeId
,
_1
:
b2Segment
|
null
)
:
void
Parameters
_0
:
b2ShapeId
_1
:
b2Segment
|
null
Returns
void
b2
Shape_
Set
Surface
Material
b2Shape_SetSurfaceMaterial
(
_0
:
b2ShapeId
,
_1
:
b2SurfaceMaterial
|
null
)
:
void
Parameters
_0
:
b2ShapeId
_1
:
b2SurfaceMaterial
|
null
Returns
void
b2
Shape_
Test
Point
b2Shape_TestPoint
(
_0
:
b2ShapeId
,
_1
:
b2Vec2
)
:
boolean
Parameters
_0
:
b2ShapeId
_1
:
b2Vec2
Returns
boolean
b2
Solve22
b2Solve22
(
_0
:
b2Mat22
,
_1
:
b2Vec2
)
:
b2Vec2
Parameters
_0
:
b2Mat22
_1
:
b2Vec2
Returns
b2Vec2
b2
Solve
Planes
b2SolvePlanes
(
_0
:
b2Vec2
,
_1
:
any
)
:
b2PlaneSolverResult
Parameters
_0
:
b2Vec2
_1
:
any
Returns
b2PlaneSolverResult
b2
Sub
b2Sub
(
_0
:
b2Vec2
,
_1
:
b2Vec2
)
:
b2Vec2
Parameters
_0
:
b2Vec2
_1
:
b2Vec2
Returns
b2Vec2
b2
Transform
Point
b2TransformPoint
(
_0
:
b2Transform
,
_1
:
b2Vec2
)
:
b2Vec2
Parameters
_0
:
b2Transform
_1
:
b2Vec2
Returns
b2Vec2
b2
Transform
Polygon
b2TransformPolygon
(
_0
:
b2Transform
,
_1
:
b2Polygon
|
null
)
:
b2Polygon
Parameters
_0
:
b2Transform
_1
:
b2Polygon
|
null
Returns
b2Polygon
b2
Unwind
Angle
b2UnwindAngle
(
_0
:
number
)
:
number
Parameters
_0
:
number
Returns
number
b2
Weld
Joint_
Get
Angular
Damping
Ratio
b2WeldJoint_GetAngularDampingRatio
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Weld
Joint_
Get
Angular
Hertz
b2WeldJoint_GetAngularHertz
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Weld
Joint_
Get
Linear
Damping
Ratio
b2WeldJoint_GetLinearDampingRatio
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Weld
Joint_
Get
Linear
Hertz
b2WeldJoint_GetLinearHertz
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Weld
Joint_
Set
Angular
Damping
Ratio
b2WeldJoint_SetAngularDampingRatio
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Weld
Joint_
Set
Angular
Hertz
b2WeldJoint_SetAngularHertz
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Weld
Joint_
Set
Linear
Damping
Ratio
b2WeldJoint_SetLinearDampingRatio
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Weld
Joint_
Set
Linear
Hertz
b2WeldJoint_SetLinearHertz
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Wheel
Joint_
Enable
Limit
b2WheelJoint_EnableLimit
(
_0
:
b2JointId
,
_1
:
boolean
)
:
void
Parameters
_0
:
b2JointId
_1
:
boolean
Returns
void
b2
Wheel
Joint_
Enable
Motor
b2WheelJoint_EnableMotor
(
_0
:
b2JointId
,
_1
:
boolean
)
:
void
Parameters
_0
:
b2JointId
_1
:
boolean
Returns
void
b2
Wheel
Joint_
Enable
Spring
b2WheelJoint_EnableSpring
(
_0
:
b2JointId
,
_1
:
boolean
)
:
void
Parameters
_0
:
b2JointId
_1
:
boolean
Returns
void
b2
Wheel
Joint_
Get
Lower
Limit
b2WheelJoint_GetLowerLimit
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Wheel
Joint_
Get
Max
Motor
Torque
b2WheelJoint_GetMaxMotorTorque
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Wheel
Joint_
Get
Motor
Speed
b2WheelJoint_GetMotorSpeed
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Wheel
Joint_
Get
Motor
Torque
b2WheelJoint_GetMotorTorque
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Wheel
Joint_
Get
Spring
Damping
Ratio
b2WheelJoint_GetSpringDampingRatio
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Wheel
Joint_
Get
Spring
Hertz
b2WheelJoint_GetSpringHertz
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Wheel
Joint_
Get
Upper
Limit
b2WheelJoint_GetUpperLimit
(
_0
:
b2JointId
)
:
number
Parameters
_0
:
b2JointId
Returns
number
b2
Wheel
Joint_
Is
Limit
Enabled
b2WheelJoint_IsLimitEnabled
(
_0
:
b2JointId
)
:
boolean
Parameters
_0
:
b2JointId
Returns
boolean
b2
Wheel
Joint_
Is
Motor
Enabled
b2WheelJoint_IsMotorEnabled
(
_0
:
b2JointId
)
:
boolean
Parameters
_0
:
b2JointId
Returns
boolean
b2
Wheel
Joint_
Is
Spring
Enabled
b2WheelJoint_IsSpringEnabled
(
_0
:
b2JointId
)
:
boolean
Parameters
_0
:
b2JointId
Returns
boolean
b2
Wheel
Joint_
Set
Limits
b2WheelJoint_SetLimits
(
_0
:
b2JointId
,
_1
:
number
,
_2
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
_2
:
number
Returns
void
b2
Wheel
Joint_
Set
Max
Motor
Torque
b2WheelJoint_SetMaxMotorTorque
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Wheel
Joint_
Set
Motor
Speed
b2WheelJoint_SetMotorSpeed
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Wheel
Joint_
Set
Spring
Damping
Ratio
b2WheelJoint_SetSpringDampingRatio
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
Wheel
Joint_
Set
Spring
Hertz
b2WheelJoint_SetSpringHertz
(
_0
:
b2JointId
,
_1
:
number
)
:
void
Parameters
_0
:
b2JointId
_1
:
number
Returns
void
b2
World_
Cast
Mover
b2World_CastMover
(
_0
:
b2WorldId
,
_1
:
b2Capsule
|
null
,
_2
:
b2Vec2
,
_3
:
b2QueryFilter
,
)
:
number
Parameters
_0
:
b2WorldId
_1
:
b2Capsule
|
null
_2
:
b2Vec2
_3
:
b2QueryFilter
Returns
number
b2
World_
Cast
Ray
b2World_CastRay
(
_0
:
b2WorldId
,
_1
:
b2Vec2
,
_2
:
b2Vec2
,
_3
:
b2QueryFilter
,
_4
:
any
,
)
:
b2TreeStats
Parameters
_0
:
b2WorldId
_1
:
b2Vec2
_2
:
b2Vec2
_3
:
b2QueryFilter
_4
:
any
Returns
b2TreeStats
b2
World_
Cast
Ray
Closest
b2World_CastRayClosest
(
_0
:
b2WorldId
,
_1
:
b2Vec2
,
_2
:
b2Vec2
,
_3
:
b2QueryFilter
,
)
:
b2RayResult
Parameters
_0
:
b2WorldId
_1
:
b2Vec2
_2
:
b2Vec2
_3
:
b2QueryFilter
Returns
b2RayResult
b2
World_
Cast
Shape
b2World_CastShape
(
_0
:
b2WorldId
,
_1
:
b2ShapeProxy
|
null
,
_2
:
b2Vec2
,
_3
:
b2QueryFilter
,
_4
:
any
,
)
:
b2TreeStats
Parameters
_0
:
b2WorldId
_1
:
b2ShapeProxy
|
null
_2
:
b2Vec2
_3
:
b2QueryFilter
_4
:
any
Returns
b2TreeStats
b2
World_
Collide
Mover
b2World_CollideMover
(
_0
:
b2WorldId
,
_1
:
b2Capsule
|
null
,
_2
:
b2QueryFilter
,
_3
:
any
,
)
:
void
Parameters
_0
:
b2WorldId
_1
:
b2Capsule
|
null
_2
:
b2QueryFilter
_3
:
any
Returns
void
b2
World_
Delete
Callback
b2World_DeleteCallback
(
_0
:
number
)
:
void
Parameters
_0
:
number
Returns
void
b2
World_
Draw
b2World_Draw
(
_0
:
b2WorldId
,
_1
:
b2DebugDraw
|
null
)
:
void
Parameters
_0
:
b2WorldId
_1
:
b2DebugDraw
|
null
Returns
void
b2
World_
Enable
Continuous
b2World_EnableContinuous
(
_0
:
b2WorldId
,
_1
:
boolean
)
:
void
Parameters
_0
:
b2WorldId
_1
:
boolean
Returns
void
b2
World_
Enable
Sleeping
b2World_EnableSleeping
(
_0
:
b2WorldId
,
_1
:
boolean
)
:
void
Parameters
_0
:
b2WorldId
_1
:
boolean
Returns
void
b2
World_
Enable
Speculative
b2World_EnableSpeculative
(
_0
:
b2WorldId
,
_1
:
boolean
)
:
void
Parameters
_0
:
b2WorldId
_1
:
boolean
Returns
void
b2
World_
Enable
Warm
Starting
b2World_EnableWarmStarting
(
_0
:
b2WorldId
,
_1
:
boolean
)
:
void
Parameters
_0
:
b2WorldId
_1
:
boolean
Returns
void
b2
World_
Explode
b2World_Explode
(
_0
:
b2WorldId
,
_1
:
b2ExplosionDef
|
null
)
:
void
Parameters
_0
:
b2WorldId
_1
:
b2ExplosionDef
|
null
Returns
void
b2
World_
Get
Awake
Body
Count
b2World_GetAwakeBodyCount
(
_0
:
b2WorldId
)
:
number
Parameters
_0
:
b2WorldId
Returns
number
b2
World_
Get
Body
Events
b2World_GetBodyEvents
(
_0
:
b2WorldId
)
:
b2BodyEvents
Parameters
_0
:
b2WorldId
Returns
b2BodyEvents
b2
World_
Get
Contact
Events
b2World_GetContactEvents
(
_0
:
b2WorldId
)
:
b2ContactEvents
Parameters
_0
:
b2WorldId
Returns
b2ContactEvents
b2
World_
Get
Counters
b2World_GetCounters
(
_0
:
b2WorldId
)
:
b2Counters
Parameters
_0
:
b2WorldId
Returns
b2Counters
b2
World_
Get
Gravity
b2World_GetGravity
(
_0
:
b2WorldId
)
:
b2Vec2
Parameters
_0
:
b2WorldId
Returns
b2Vec2
b2
World_
Get
Hit
Event
Threshold
b2World_GetHitEventThreshold
(
_0
:
b2WorldId
)
:
number
Parameters
_0
:
b2WorldId
Returns
number
b2
World_
Get
Joint
Events
b2World_GetJointEvents
(
_0
:
b2WorldId
)
:
b2JointEvents
Parameters
_0
:
b2WorldId
Returns
b2JointEvents
b2
World_
Get
Maximum
Linear
Speed
b2World_GetMaximumLinearSpeed
(
_0
:
b2WorldId
)
:
number
Parameters
_0
:
b2WorldId
Returns
number
b2
World_
Get
Pointer
b2World_GetPointer
(
_0
:
b2WorldId
)
:
any
Parameters
_0
:
b2WorldId
Returns
any
b2
World_
Get
Profile
b2World_GetProfile
(
_0
:
b2WorldId
)
:
b2Profile
Parameters
_0
:
b2WorldId
Returns
b2Profile
b2
World_
Get
Restitution
Threshold
b2World_GetRestitutionThreshold
(
_0
:
b2WorldId
)
:
number
Parameters
_0
:
b2WorldId
Returns
number
b2
World_
Get
Sensor
Events
b2World_GetSensorEvents
(
_0
:
b2WorldId
)
:
b2SensorEvents
Parameters
_0
:
b2WorldId
Returns
b2SensorEvents
b2
World_
Is
Continuous
Enabled
b2World_IsContinuousEnabled
(
_0
:
b2WorldId
)
:
boolean
Parameters
_0
:
b2WorldId
Returns
boolean
b2
World_
Is
Sleeping
Enabled
b2World_IsSleepingEnabled
(
_0
:
b2WorldId
)
:
boolean
Parameters
_0
:
b2WorldId
Returns
boolean
b2
World_
Is
Valid
b2World_IsValid
(
_0
:
b2WorldId
)
:
boolean
Parameters
_0
:
b2WorldId
Returns
boolean
b2
World_
Is
Warm
Starting
Enabled
b2World_IsWarmStartingEnabled
(
_0
:
b2WorldId
)
:
boolean
Parameters
_0
:
b2WorldId
Returns
boolean
b2
World_
Overlap
AABB
b2World_OverlapAABB
(
_0
:
b2WorldId
,
_1
:
b2AABB
,
_2
:
b2QueryFilter
,
_3
:
any
,
)
:
b2TreeStats
Parameters
_0
:
b2WorldId
_1
:
b2AABB
_2
:
b2QueryFilter
_3
:
any
Returns
b2TreeStats
b2
World_
Overlap
Shape
b2World_OverlapShape
(
_0
:
b2WorldId
,
_1
:
b2ShapeProxy
|
null
,
_2
:
b2QueryFilter
,
_3
:
any
,
)
:
b2TreeStats
Parameters
_0
:
b2WorldId
_1
:
b2ShapeProxy
|
null
_2
:
b2QueryFilter
_3
:
any
Returns
b2TreeStats
b2
World_
Rebuild
Static
Tree
b2World_RebuildStaticTree
(
_0
:
b2WorldId
)
:
void
Parameters
_0
:
b2WorldId
Returns
void
b2
World_
Set
Contact
Tuning
b2World_SetContactTuning
(
_0
:
b2WorldId
,
_1
:
number
,
_2
:
number
,
_3
:
number
,
)
:
void
Parameters
_0
:
b2WorldId
_1
:
number
_2
:
number
_3
:
number
Returns
void
b2
World_
Set
Custom
Filter
Callback
b2World_SetCustomFilterCallback
(
_0
:
b2WorldId
,
_1
:
any
)
:
number
Parameters
_0
:
b2WorldId
_1
:
any
Returns
number
b2
World_
Set
Friction
Callback
b2World_SetFrictionCallback
(
_0
:
b2WorldId
,
_1
:
any
)
:
void
Parameters
_0
:
b2WorldId
_1
:
any
Returns
void
b2
World_
Set
Gravity
b2World_SetGravity
(
_0
:
b2WorldId
,
_1
:
b2Vec2
)
:
void
Parameters
_0
:
b2WorldId
_1
:
b2Vec2
Returns
void
b2
World_
Set
Hit
Event
Threshold
b2World_SetHitEventThreshold
(
_0
:
b2WorldId
,
_1
:
number
)
:
void
Parameters
_0
:
b2WorldId
_1
:
number
Returns
void
b2
World_
Set
Maximum
Linear
Speed
b2World_SetMaximumLinearSpeed
(
_0
:
b2WorldId
,
_1
:
number
)
:
void
Parameters
_0
:
b2WorldId
_1
:
number
Returns
void
b2
World_
Set
Pre
Solve
Callback
b2World_SetPreSolveCallback
(
_0
:
b2WorldId
,
_1
:
any
)
:
number
Parameters
_0
:
b2WorldId
_1
:
any
Returns
number
b2
World_
Set
Restitution
Callback
b2World_SetRestitutionCallback
(
_0
:
b2WorldId
,
_1
:
any
)
:
void
Parameters
_0
:
b2WorldId
_1
:
any
Returns
void
b2
World_
Set
Restitution
Threshold
b2World_SetRestitutionThreshold
(
_0
:
b2WorldId
,
_1
:
number
)
:
void
Parameters
_0
:
b2WorldId
_1
:
number
Returns
void
b2
World_
Step
b2World_Step
(
_0
:
b2WorldId
,
_1
:
number
,
_2
:
number
)
:
void
Parameters
_0
:
b2WorldId
_1
:
number
_2
:
number
Returns
void
Get
Memory
Stats
GetMemoryStats
()
:
MemoryStats
Returns
MemoryStats
Random
Float
RandomFloat
()
:
number
Returns
number
Random
Float
Range
RandomFloatRange
(
_0
:
number
,
_1
:
number
)
:
number
Parameters
_0
:
number
_1
:
number
Returns
number
Random
Int
RandomInt
()
:
number
Returns
number
Random
Int
Range
RandomIntRange
(
_0
:
number
,
_1
:
number
)
:
number
Parameters
_0
:
number
_1
:
number
Returns
number
Random
Polygon
RandomPolygon
(
_0
:
number
)
:
b2Polygon
Parameters
_0
:
number
Returns
b2Polygon
Random
Vec2
RandomVec2
(
_0
:
number
,
_1
:
number
)
:
b2Vec2
Parameters
_0
:
number
_1
:
number
Returns
b2Vec2
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
B2_
HASH_
INIT
B2_
PI
b2
AABB
b2
Body
Def
b2
Body
Events
b2
Body
Move
Event
b2
Body
Type
b2
Capsule
b2
Cast
Output
b2
Chain
Def
b2
Chain
Segment
b2
Circle
b2
Collision
Plane
b2
Contact
Begin
Touch
Event
b2
Contact
Data
b2
Contact
Events
b2
Contact
Hit
Event
b2
Cos
Sin
b2
Counters
b2
Debug
Draw
b2
Distance
Joint
Def
b2
Explosion
Def
b2
Filter
b2
Filter
Joint
Def
b2
Hull
b2
Joint
Def
b2
Joint
Event
b2
Joint
Events
b2
Joint
Type
b2
Manifold
b2
Manifold
Point
b2
Mass
Data
b2
Mat22
b2
Motion
Locks
b2
Motor
Joint
Def
b2
Plane
b2
Plane
Solver
Result
b2
Polygon
b2
Prismatic
Joint
Def
b2
Profile
b2
Query
Filter
b2
Ray
Callback
Result
b2
Ray
Cast
Input
b2
Ray
Result
b2
Revolute
Joint
Def
b2
Rot
b2
Rot_
identity
b2
Segment
b2
Sensor
Events
b2
Shape
Def
b2
Shape
Proxy
b2
Shape
Type
b2
Surface
Material
b2
Transform
b2
Vec2
b2
Vec2_
zero
b2
Weld
Joint
Def
b2
Wheel
Joint
Def
b2
World
Def
Basic
Body
Interface
Basic
Chain
Interface
Basic
Distance
Joint
Interface
Basic
Joint
Interface
Basic
Motor
Joint
Interface
Basic
Prismatic
Joint
Interface
Basic
Revolute
Joint
Interface
Basic
Shape
Interface
Basic
Weld
Joint
Interface
Basic
Wheel
Joint
Interface
Basic
World
Interface
Body
Body
Const
Ref
Body
Ref
Chain
Chain
Const
Ref
Chain
Ref
Debug
Draw
Command
Buffer
Debug
Draw
Command
Type
Distance
Joint
Distance
Joint
Const
Ref
Distance
Joint
Ref
Joint
Joint
Const
Ref
Joint
Ref
Motor
Joint
Motor
Joint
Const
Ref
Motor
Joint
Ref
Prismatic
Joint
Prismatic
Joint
Const
Ref
Prismatic
Joint
Ref
Revolute
Joint
Revolute
Joint
Const
Ref
Revolute
Joint
Ref
Shape
Task
System
Weld
Joint
Weld
Joint
Const
Ref
Weld
Joint
Ref
Wheel
Joint
Wheel
Joint
Const
Ref
Wheel
Joint
Ref
World
World
Const
Ref
World
Ref
Methods
B2_
ID_
EQUALS
b2
AABB_
Center
b2
AABB_
Contains
b2
AABB_
Extents
b2
AABB_
Union
b2
Abs
b2
Add
b2
Body_
Apply
Angular
Impulse
b2
Body_
Apply
Force
b2
Body_
Apply
Force
To
Center
b2
Body_
Apply
Linear
Impulse
b2
Body_
Apply
Linear
Impulse
To
Center
b2
Body_
Apply
Mass
From
Shapes
b2
Body_
Apply
Torque
b2
Body_
Compute
AABB
b2
Body_
Disable
b2
Body_
Enable
b2
Body_
Enable
Contact
Events
b2
Body_
Enable
Hit
Events
b2
Body_
Enable
Sleep
b2
Body_
Get
Angular
Damping
b2
Body_
Get
Angular
Velocity
b2
Body_
Get
Contact
Capacity
b2
Body_
Get
Contact
Data
b2
Body_
Get
Gravity
Scale
b2
Body_
Get
Joint
Count
b2
Body_
Get
Joints
b2
Body_
Get
Linear
Damping
b2
Body_
Get
Linear
Velocity
b2
Body_
Get
Local
Center
Of
Mass
b2
Body_
Get
Local
Point
b2
Body_
Get
Local
Point
Velocity
b2
Body_
Get
Local
Vector
b2
Body_
Get
Mass
b2
Body_
Get
Mass
Data
b2
Body_
Get
Motion
Locks
b2
Body_
Get
Pointer
b2
Body_
Get
Position
b2
Body_
Get
Rotation
b2
Body_
Get
Rotational
Inertia
b2
Body_
Get
Shape
Count
b2
Body_
Get
Shapes
b2
Body_
Get
Sleep
Threshold
b2
Body_
Get
Transform
b2
Body_
Get
Type
b2
Body_
Get
World
b2
Body_
Get
World
Center
Of
Mass
b2
Body_
Get
World
Point
b2
Body_
Get
World
Point
Velocity
b2
Body_
Get
World
Vector
b2
Body_
Is
Awake
b2
Body_
Is
Bullet
b2
Body_
Is
Enabled
b2
Body_
Is
Sleep
Enabled
b2
Body_
Is
Valid
b2
Body_
Set
Angular
Damping
b2
Body_
Set
Angular
Velocity
b2
Body_
Set
Awake
b2
Body_
Set
Bullet
b2
Body_
Set
Gravity
Scale
b2
Body_
Set
Linear
Damping
b2
Body_
Set
Linear
Velocity
b2
Body_
Set
Mass
Data
b2
Body_
Set
Motion
Locks
b2
Body_
Set
Sleep
Threshold
b2
Body_
Set
Target
Transform
b2
Body_
Set
Transform
b2
Body_
Set
Type
b2
Chain_
Get
Segment
Count
b2
Chain_
Get
Segments
b2
Chain_
Is
Valid
b2
Clamp
b2
Clip
Vector
b2
Compute
Angular
Velocity
b2
Compute
Capsule
AABB
b2
Compute
Capsule
Mass
b2
Compute
Circle
AABB
b2
Compute
Circle
Mass
b2
Compute
Hull
b2
Compute
Polygon
AABB
b2
Compute
Polygon
Mass
b2
Compute
Segment
AABB
b2
Create
Body
b2
Create
Capsule
Shape
b2
Create
Chain
b2
Create
Circle
Shape
b2
Create
Distance
Joint
b2
Create
Filter
Joint
b2
Create
Motor
Joint
b2
Create
Polygon
Shape
b2
Create
Prismatic
Joint
b2
Create
Revolute
Joint
b2
Create
Segment
Shape
b2
Create
Threaded
World
b2
Create
Weld
Joint
b2
Create
Wheel
Joint
b2
Create
World
b2
Cross
b2
Cross
SV
b2
Cross
VS
b2
Default
Body
Def
b2
Default
Chain
Def
b2
Default
Debug
Draw
b2
Default
Distance
Joint
Def
b2
Default
Explosion
Def
b2
Default
Filter
Joint
Def
b2
Default
Motor
Joint
Def
b2
Default
Prismatic
Joint
Def
b2
Default
Query
Filter
b2
Default
Revolute
Joint
Def
b2
Default
Shape
Def
b2
Default
Surface
Material
b2
Default
Weld
Joint
Def
b2
Default
Wheel
Joint
Def
b2
Default
World
Def
b2
Destroy
Body
b2
Destroy
Chain
b2
Destroy
Joint
b2
Destroy
Shape
b2
Destroy
World
b2
Distance
b2
Distance
Joint_
Enable
Limit
b2
Distance
Joint_
Enable
Motor
b2
Distance
Joint_
Enable
Spring
b2
Distance
Joint_
Get
Current
Length
b2
Distance
Joint_
Get
Length
b2
Distance
Joint_
Get
Max
Length
b2
Distance
Joint_
Get
Max
Motor
Force
b2
Distance
Joint_
Get
Min
Length
b2
Distance
Joint_
Get
Motor
Force
b2
Distance
Joint_
Get
Motor
Speed
b2
Distance
Joint_
Get
Spring
Damping
Ratio
b2
Distance
Joint_
Get
Spring
Hertz
b2
Distance
Joint_
Is
Limit
Enabled
b2
Distance
Joint_
Is
Motor
Enabled
b2
Distance
Joint_
Is
Spring
Enabled
b2
Distance
Joint_
Set
Length
b2
Distance
Joint_
Set
Length
Range
b2
Distance
Joint_
Set
Max
Motor
Force
b2
Distance
Joint_
Set
Motor
Speed
b2
Distance
Joint_
Set
Spring
Damping
Ratio
b2
Distance
Joint_
Set
Spring
Hertz
b2
Distance
Squared
b2
Dot
b2
Get
Inverse22
b2
Hash
b2
Integrate
Rotation
b2
Inv
Mul
Rot
b2
Inv
Mul
Transforms
b2
Inv
Rotate
Vector
b2
Inv
Transform
Point
b2
Is
Normalized
b2
Is
Valid
Plane
b2
Is
Valid
Ray
b2
Joint_
Get
Body
A
b2
Joint_
Get
Body
B
b2
Joint_
Get
Collide
Connected
b2
Joint_
Get
Constraint
Force
b2
Joint_
Get
Constraint
Torque
b2
Joint_
Get
Force
Threshold
b2
Joint_
Get
Local
Frame
A
b2
Joint_
Get
Local
Frame
B
b2
Joint_
Get
Pointer
b2
Joint_
Get
Torque
Threshold
b2
Joint_
Get
Type
b2
Joint_
Get
World
b2
Joint_
Is
Valid
b2
Joint_
Set
Collide
Connected
b2
Joint_
Set
Force
Threshold
b2
Joint_
Set
Local
Frame
A
b2
Joint_
Set
Local
Frame
B
b2
Joint_
Set
Torque
Threshold
b2
Joint_
Wake
Bodies
b2
Left
Perp
b2
Length
b2
Length
Squared
b2
Lerp
b2
Make
Box
b2
Make
Offset
Box
b2
Make
Offset
Polygon
b2
Make
Offset
Proxy
b2
Make
Offset
Rounded
Box
b2
Make
Offset
Rounded
Polygon
b2
Make
Polygon
b2
Make
Proxy
b2
Make
Rot
b2
Make
Rounded
Box
b2
Make
Square
b2
Max
b2
Max
Float
b2
Min
b2
Motor
Joint_
Get
Angular
Damping
Ratio
b2
Motor
Joint_
Get
Angular
Hertz
b2
Motor
Joint_
Get
Angular
Velocity
b2
Motor
Joint_
Get
Linear
Damping
Ratio
b2
Motor
Joint_
Get
Linear
Hertz
b2
Motor
Joint_
Get
Linear
Velocity
b2
Motor
Joint_
Get
Max
Spring
Force
b2
Motor
Joint_
Get
Max
Spring
Torque
b2
Motor
Joint_
Get
Max
Velocity
Force
b2
Motor
Joint_
Get
Max
Velocity
Torque
b2
Motor
Joint_
Set
Angular
Damping
Ratio
b2
Motor
Joint_
Set
Angular
Hertz
b2
Motor
Joint_
Set
Angular
Velocity
b2
Motor
Joint_
Set
Linear
Damping
Ratio
b2
Motor
Joint_
Set
Linear
Hertz
b2
Motor
Joint_
Set
Linear
Velocity
b2
Motor
Joint_
Set
Max
Spring
Force
b2
Motor
Joint_
Set
Max
Spring
Torque
b2
Motor
Joint_
Set
Max
Velocity
Force
b2
Motor
Joint_
Set
Max
Velocity
Torque
b2
Mul
b2
Mul
Add
b2
Mul
MV
b2
Mul
Rot
b2
Mul
Sub
b2
Mul
SV
b2
Mul
Transforms
b2
Neg
b2
N
Lerp
b2
Normalize
b2
Normalize
Rot
b2
Point
In
Capsule
b2
Point
In
Circle
b2
Point
In
Polygon
b2
Prismatic
Joint_
Enable
Limit
b2
Prismatic
Joint_
Enable
Motor
b2
Prismatic
Joint_
Enable
Spring
b2
Prismatic
Joint_
Get
Lower
Limit
b2
Prismatic
Joint_
Get
Max
Motor
Force
b2
Prismatic
Joint_
Get
Motor
Force
b2
Prismatic
Joint_
Get
Motor
Speed
b2
Prismatic
Joint_
Get
Speed
b2
Prismatic
Joint_
Get
Spring
Damping
Ratio
b2
Prismatic
Joint_
Get
Spring
Hertz
b2
Prismatic
Joint_
Get
Translation
b2
Prismatic
Joint_
Get
Upper
Limit
b2
Prismatic
Joint_
Is
Limit
Enabled
b2
Prismatic
Joint_
Is
Motor
Enabled
b2
Prismatic
Joint_
Is
Spring
Enabled
b2
Prismatic
Joint_
Set
Limits
b2
Prismatic
Joint_
Set
Max
Motor
Force
b2
Prismatic
Joint_
Set
Motor
Speed
b2
Prismatic
Joint_
Set
Spring
Damping
Ratio
b2
Prismatic
Joint_
Set
Spring
Hertz
b2
Relative
Angle
b2
Revolute
Joint_
Enable
Limit
b2
Revolute
Joint_
Enable
Motor
b2
Revolute
Joint_
Enable
Spring
b2
Revolute
Joint_
Get
Angle
b2
Revolute
Joint_
Get
Lower
Limit
b2
Revolute
Joint_
Get
Max
Motor
Torque
b2
Revolute
Joint_
Get
Motor
Speed
b2
Revolute
Joint_
Get
Motor
Torque
b2
Revolute
Joint_
Get
Spring
Damping
Ratio
b2
Revolute
Joint_
Get
Spring
Hertz
b2
Revolute
Joint_
Get
Upper
Limit
b2
Revolute
Joint_
Is
Limit
Enabled
b2
Revolute
Joint_
Is
Motor
Enabled
b2
Revolute
Joint_
Is
Spring
Enabled
b2
Revolute
Joint_
Set
Limits
b2
Revolute
Joint_
Set
Max
Motor
Torque
b2
Revolute
Joint_
Set
Motor
Speed
b2
Revolute
Joint_
Set
Spring
Damping
Ratio
b2
Revolute
Joint_
Set
Spring
Hertz
b2
Right
Perp
b2
Rot_
Get
Angle
b2
Rot_
Get
X
Axis
b2
Rot_
Get
Y
Axis
b2
Rotate
Vector
b2
Shape_
Apply
Wind
b2
Shape_
Are
Contact
Events
Enabled
b2
Shape_
Are
Hit
Events
Enabled
b2
Shape_
Are
Pre
Solve
Events
Enabled
b2
Shape_
Are
Sensor
Events
Enabled
b2
Shape_
Compute
Mass
Data
b2
Shape_
Enable
Contact
Events
b2
Shape_
Enable
Hit
Events
b2
Shape_
Enable
Pre
Solve
Events
b2
Shape_
Enable
Sensor
Events
b2
Shape_
Get
AABB
b2
Shape_
Get
Body
b2
Shape_
Get
Capsule
b2
Shape_
Get
Chain
Segment
b2
Shape_
Get
Circle
b2
Shape_
Get
Closest
Point
b2
Shape_
Get
Contact
Capacity
b2
Shape_
Get
Contact
Data
b2
Shape_
Get
Density
b2
Shape_
Get
Filter
b2
Shape_
Get
Friction
b2
Shape_
Get
Parent
Chain
b2
Shape_
Get
Pointer
b2
Shape_
Get
Polygon
b2
Shape_
Get
Restitution
b2
Shape_
Get
Segment
b2
Shape_
Get
Sensor
Capacity
b2
Shape_
Get
Sensor
Data
b2
Shape_
Get
Surface
Material
b2
Shape_
Get
Type
b2
Shape_
Get
World
b2
Shape_
Is
Sensor
b2
Shape_
Is
Valid
b2
Shape_
Ray
Cast
b2
Shape_
Set
Capsule
b2
Shape_
Set
Circle
b2
Shape_
Set
Density
b2
Shape_
Set
Filter
b2
Shape_
Set
Friction
b2
Shape_
Set
Polygon
b2
Shape_
Set
Restitution
b2
Shape_
Set
Segment
b2
Shape_
Set
Surface
Material
b2
Shape_
Test
Point
b2
Solve22
b2
Solve
Planes
b2
Sub
b2
Transform
Point
b2
Transform
Polygon
b2
Unwind
Angle
b2
Weld
Joint_
Get
Angular
Damping
Ratio
b2
Weld
Joint_
Get
Angular
Hertz
b2
Weld
Joint_
Get
Linear
Damping
Ratio
b2
Weld
Joint_
Get
Linear
Hertz
b2
Weld
Joint_
Set
Angular
Damping
Ratio
b2
Weld
Joint_
Set
Angular
Hertz
b2
Weld
Joint_
Set
Linear
Damping
Ratio
b2
Weld
Joint_
Set
Linear
Hertz
b2
Wheel
Joint_
Enable
Limit
b2
Wheel
Joint_
Enable
Motor
b2
Wheel
Joint_
Enable
Spring
b2
Wheel
Joint_
Get
Lower
Limit
b2
Wheel
Joint_
Get
Max
Motor
Torque
b2
Wheel
Joint_
Get
Motor
Speed
b2
Wheel
Joint_
Get
Motor
Torque
b2
Wheel
Joint_
Get
Spring
Damping
Ratio
b2
Wheel
Joint_
Get
Spring
Hertz
b2
Wheel
Joint_
Get
Upper
Limit
b2
Wheel
Joint_
Is
Limit
Enabled
b2
Wheel
Joint_
Is
Motor
Enabled
b2
Wheel
Joint_
Is
Spring
Enabled
b2
Wheel
Joint_
Set
Limits
b2
Wheel
Joint_
Set
Max
Motor
Torque
b2
Wheel
Joint_
Set
Motor
Speed
b2
Wheel
Joint_
Set
Spring
Damping
Ratio
b2
Wheel
Joint_
Set
Spring
Hertz
b2
World_
Cast
Mover
b2
World_
Cast
Ray
b2
World_
Cast
Ray
Closest
b2
World_
Cast
Shape
b2
World_
Collide
Mover
b2
World_
Delete
Callback
b2
World_
Draw
b2
World_
Enable
Continuous
b2
World_
Enable
Sleeping
b2
World_
Enable
Speculative
b2
World_
Enable
Warm
Starting
b2
World_
Explode
b2
World_
Get
Awake
Body
Count
b2
World_
Get
Body
Events
b2
World_
Get
Contact
Events
b2
World_
Get
Counters
b2
World_
Get
Gravity
b2
World_
Get
Hit
Event
Threshold
b2
World_
Get
Joint
Events
b2
World_
Get
Maximum
Linear
Speed
b2
World_
Get
Pointer
b2
World_
Get
Profile
b2
World_
Get
Restitution
Threshold
b2
World_
Get
Sensor
Events
b2
World_
Is
Continuous
Enabled
b2
World_
Is
Sleeping
Enabled
b2
World_
Is
Valid
b2
World_
Is
Warm
Starting
Enabled
b2
World_
Overlap
AABB
b2
World_
Overlap
Shape
b2
World_
Rebuild
Static
Tree
b2
World_
Set
Contact
Tuning
b2
World_
Set
Custom
Filter
Callback
b2
World_
Set
Friction
Callback
b2
World_
Set
Gravity
b2
World_
Set
Hit
Event
Threshold
b2
World_
Set
Maximum
Linear
Speed
b2
World_
Set
Pre
Solve
Callback
b2
World_
Set
Restitution
Callback
b2
World_
Set
Restitution
Threshold
b2
World_
Step
Get
Memory
Stats
Random
Float
Random
Float
Range
Random
Int
Random
Int
Range
Random
Polygon
Random
Vec2
q5play
Loading...