blaze.dynamics.island
- struct
Position
;
- A 2d position
- bVec2
x
;
- coordinates
- float
a
;
- angle
- struct
Velocity
;
- 2d velocity
- bVec2
v
;
- linear velocity
- float
w
;
- angular velocity
- class
Island
;
- An...
Island
?
- void
clear
();
- Clears out the bodies, contacts, and joints
- int
contactCount
();
- Returns:
the number of contacts
- int
jointCount
();
- Returns:
the number of joints
- int
bodyCount
();
- Returns:
the number of bodies
- void
solve
(TimeStep step, bVec2 gravity, bool allowSleep);
- ?
Params:
TimeStep step |
? |
bVec2 gravity |
The gravity vector |
bool allowSleep |
true if bodies shold be allowed to sleep |
- void
solveTOI
(TimeStep subStep);
- ?
Params:
- void
add
(Body rBody);
- Adds a body to the island
Params:
Body rBody |
the body to
add
|
- void
add
(Contact contact);
- Adds a contact to the island
Params:
Contact contact |
the contact to
add
|
- void
add
(Joint joint);
- Adds a joint to the island
Params:
Joint joint |
the joint to
add
|
- void
report
(ContactConstraint [] constraints);
- ?
Params:
ContactConstraint [] constraints |
? |
- ContactSolver
contactSolver
;
- The contact solver
- ContactListener
m_listener
;
- The contact listener
- Body[]
bodies
;
- The
bodies
in the island
- Contact[]
contacts
;
- The
contacts
in the island
- Joint[]
joints
;
- The
joints
in the island
- Position []
positions
;
- Unused
- Velocity []
velocities
;
- Unused
- int
positionIterationCount
;
- Unused
|