1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
extern crate libc;
extern crate vec_map;
#[macro_use]
extern crate bitflags;
#[cfg(feature = "serialize")]
#[macro_use]
extern crate serde_derive;
#[cfg(feature = "serialize")]
extern crate serde;
#[cfg(feature = "nalgebra")]
extern crate nalgebra;
#[cfg(feature = "cgmath")]
extern crate cgmath;
mod ffi;
#[doc(hidden)]
#[macro_use]
pub mod wrap;
#[doc(hidden)]
pub mod handle;
pub mod common;
pub mod collision;
pub mod dynamics;
pub mod user_data;
#[cfg(feature = "serialize")]
pub mod serialize;
pub mod b2 {
pub use common::{Color, DrawFlags, Draw};
pub use common::math::{Rot, Sweep, Transform, Vec2};
pub use common::math::{cross_vv, cross_vs, cross_sv};
pub use common::settings::{ANGULAR_SLOP, LINEAR_SLOP, MAX_MANIFOLD_POINTS,
MAX_POLYGON_VERTICES, PI, POLYGON_RADIUS};
pub use collision::{AABB, ContactFeature, ContactId, Manifold, ManifoldPoint, WorldManifold,
RayCastInput, RayCastOutput, ContactFeatureType, ManifoldType, PointState,
get_point_states, test_overlap, distance, time_of_impact};
pub use collision::shapes::{MassData, ShapeType, UnknownShape, Shape, ChainShape, CircleShape,
EdgeShape, PolygonShape};
pub use dynamics::Profile;
pub use dynamics::world::{World, BodyHandle, JointHandle};
pub use dynamics::world::callbacks::{ContactImpulse, ContactFilter, ContactListener,
QueryCallback, RayCastCallback};
pub use dynamics::body::{Body, BodyDef, MetaBody, BodyType, FixtureHandle};
pub use dynamics::fixture::{Filter, Fixture, FixtureDef, MetaFixture};
pub use dynamics::joints::{DistanceJoint, DistanceJointDef, FrictionJoint, FrictionJointDef,
GearJoint, GearJointDef, MetaJoint, MotorJoint,
MotorJointDef, MouseJoint, MouseJointDef, PrismaticJoint,
PrismaticJointDef, PulleyJoint, PulleyJointDef, RevoluteJoint,
RevoluteJointDef, RopeJoint, RopeJointDef, WeldJoint, WeldJointDef,
WheelJoint, WheelJointDef, JointType, LimitState, UnknownJoint,
Joint, JointDef};
}