Options
All
  • Public
  • Public/Protected
  • All
Menu

Module box2d

Index

Type aliases

b2ContactExtends

b2ContactExtends: b2.Contact & { m_userData: any }

Variables

Const GREEN_COLOR

GREEN_COLOR: Readonly<Color> = Color.GREEN

Const RED_COLOR

RED_COLOR: Readonly<Color> = Color.RED

Const _tmp_color

_tmp_color: Color = new Color()

Const _tmp_vec2

_tmp_vec2: b2Vec2 = new b2.Vec2()

Const b2worldmanifold

b2worldmanifold: b2WorldManifold = new b2.WorldManifold()

Const manifoldPointCache

manifoldPointCache: ManifoldPoint[] = [new ManifoldPoint(), new ManifoldPoint()]

Const pointCache

pointCache: Vec2[] = [new Vec2(), new Vec2()]

Const pools

pools: PhysicsContact[] = []

Const temoBodyDef

temoBodyDef: b2BodyDef = new b2.BodyDef()

Const tempB2AABB

tempB2AABB: b2AABB = new b2.AABB()

Const tempB2Vec2

tempB2Vec2: b2Vec2 = new b2.Vec2()

Const tempVec2_1

tempVec2_1: Vec2 = new Vec2()

Const tempVec2_1

tempVec2_1: b2Vec2 = new b2.Vec2()

Const tempVec2_2

tempVec2_2: Vec2 = new Vec2()

Const tempVec3

tempVec3: Vec3 = new Vec3()

Const tempVec3

tempVec3: Vec3 = new Vec3()

Const testResults

testResults: Collider2D[] = []

Object literals

Const impulse

impulse: object
en

Contact impulses for reporting.

zh

用于返回给回调的接触冲量。

normalImpulses

normalImpulses: number[] = [] as number[]
en

Normal impulses.

zh

法线方向的冲量

property

normalImpulses

tangentImpulses

tangentImpulses: number[] = [] as number[]
en

Tangent impulses

zh

切线方向的冲量

property

tangentImpulses

Const manifold

manifold: object

localNormal

localNormal: Vec2 = new Vec2()
en

-e_circles: not used -e_faceA: the normal on polygonA -e_faceB: the normal on polygonB

zh

-e_circles: 没被使用到 -e_faceA: polygonA 的法向量 -e_faceB: polygonB 的法向量

property

{Vec2} localNormal

localPoint

localPoint: Vec2 = new Vec2()
en

The local point usage depends on the manifold type: -e_circles: the local center of circleA -e_faceA: the center of faceA -e_faceB: the center of faceB

zh

用途取决于 manifold 类型 -e_circles: circleA 的本地中心点 -e_faceA: faceA 的本地中心点 -e_faceB: faceB 的本地中心点

property

{Vec2} localPoint

points

points: ManifoldPoint[] = [] as ManifoldPoint[]
en

the points of contact.

zh

接触点信息。

property

{[ManifoldPoint]} points

type

type: number = 0
en

Manifold type : 0: e_circles, 1: e_faceA, 2: e_faceB

zh

Manifold 类型 : 0: e_circles, 1: e_faceA, 2: e_faceB

property

{Number} type

Const worldmanifold

worldmanifold: object

normal

normal: Vec2 = new Vec2()
en

world vector pointing from A to B

zh

世界坐标系下由 A 指向 B 的向量

property

{Vec2} normal

points

points: Vec2[] = [] as Vec2[]
en

world contact point (point of intersection)

zh

碰撞点集合

property

{[Vec2]} points

separations

separations: number[] = [] as number[]
en

a negative value indicates overlap

zh

一个负数,用于指明重叠的部分

Generated using TypeDoc