5.6 KiB
5.6 KiB
Planck.js API Doc
Index
Namespaces
Enumerations
Classes
- AABB
- Body
- BoxShape
- BroadPhase
- ChainShape
- CircleShape
- Contact
- ContactEdge
- ContactImpulse
- DistanceJoint
- DistanceProxy
- DynamicTree
- EdgeShape
- Fixture
- FrictionJoint
- GearJoint
- Joint
- Mat22
- Mat33
- Math
- MotorJoint
- MouseJoint
- PolygonShape
- Position
- PrismaticJoint
- PulleyJoint
- RevoluteJoint
- RopeJoint
- Rot
- Settings
- Shape
- Solver
- Sweep
- Transform
- TreeNode
- Vec2
- Vec3
- Velocity
- VelocityConstraintPoint
- WeldJoint
- WheelJoint
- World
Interfaces
- BodyDef
- ContactFeature
- ContactID
- DistanceJointDef
- DistanceJointOpt
- FixtureDef
- FixtureOpt
- FixtureProxy
- FrictionJointDef
- FrictionJointOpt
- GearJointDef
- GearJointOpt
- JointDef
- JointEdge
- JointOpt
- Manifold
- ManifoldPoint
- MassData
- MotorJointDef
- MotorJointOpt
- MouseJointDef
- MouseJointOpt
- PrismaticJointDef
- PrismaticJointOpt
- PulleyJointDef
- PulleyJointOpt
- RayCastInput
- RayCastOutput
- RevoluteJointDef
- RevoluteJointOpt
- RopeJointDef
- RopeJointOpt
- WeldJointDef
- WeldJointOpt
- WheelJointDef
- WheelJointOpt
- WorldDef
- WorldManifold
Type aliases
Type aliases
BodyType
Ƭ BodyType: "static" | "kinematic" | "dynamic"
Defined in index.d.ts:148
ContactCallack
Ƭ ContactCallack: function
Defined in index.d.ts:311
Type declaration:
▸ (manifold: Manifold, xfA: Transform, fixtureA: Fixture, indexA: number, xfB: Transform, fixtureB: Fixture, indexB: number): void & object
Parameters:
| Name | Type |
|---|---|
manifold |
Manifold |
xfA |
Transform |
fixtureA |
Fixture |
indexA |
number |
xfB |
Transform |
fixtureB |
Fixture |
indexB |
number |
EvaluateFunction
Ƭ EvaluateFunction: function
Defined in index.d.ts:321
Type declaration:
▸ (manifold: Manifold, xfA: Transform, fixtureA: Fixture, indexA: number, xfB: Transform, fixtureB: Fixture, indexB: number): void
Parameters:
| Name | Type |
|---|---|
manifold |
Manifold |
xfA |
Transform |
fixtureA |
Fixture |
indexA |
number |
xfB |
Transform |
fixtureB |
Fixture |
indexB |
number |
ShapeType
Ƭ ShapeType: "circle" | "edge" | "polygon" | "chain"
Defined in shape/index.d.ts:6