Property | Type | Description | |
---|---|---|---|
ActiveContacts | int | ||
ContactPoolCount | int |
Property | Type | Description | |
---|---|---|---|
Flags | int |
Method | Description | |
---|---|---|
ClearForces ( ) : void |
Call this after you are done with time steps to clear the forces. You normally call this after each call to Step, unless you are performing sub-steps. By default, forces will be automatically cleared, so you don't need to call this function.
|
|
CreateBody ( |
create a rigid body given a definition. No reference to the definition is retained.
|
|
CreateJoint ( |
create a joint to constrain bodies together. No reference to the definition is retained. This may cause the connected bodies to cease colliding.
|
|
DestroyBody ( |
destroy a rigid body given a definition. No reference to the definition is retained. This function is locked during callbacks.
|
|
DestroyJoint ( |
destroy a joint. This may cause the connected bodies to begin colliding.
|
|
DrawDebugData ( ) : void |
Call this to draw shapes and other debug draw data.
|
|
PopContact ( |
||
PushContact ( |
||
QueryAABB ( IQueryCallback callback, |
Query the world for all fixtures that potentially overlap the provided AABB.
|
|
Raycast ( IRayCastCallback callback, |
Ray-cast the world for all fixtures in the path of the ray. Your callback controls whether you get the closest point, any point, or n-points. The ray-cast ignores shapes that contain the starting point.
|
|
Step ( float dt, int velocityIterations, int positionIterations ) : void |
Take a time step. This performs collision detection, integration, and constraint solution.
|
|
World ( |
||
World ( |
Construct a world object.
|
Method | Description | |
---|---|---|
AddType ( IDynamicStack |
||
DrawJoint ( |
||
DrawShape ( |
||
InitializeRegisters ( ) : void | ||
Solve ( |
||
SolveToi ( |
public CreateJoint ( |
||
def | ||
return |
public DestroyJoint ( |
||
j | ||
return | void |
public PopContact ( |
||
fixtureA | ||
indexA | int | |
fixtureB | ||
indexB | int | |
return |
public PushContact ( |
||
contact | ||
return | void |
public QueryAABB ( IQueryCallback callback, |
||
callback | IQueryCallback | a user implemented callback class. |
aabb | the query box. | |
return | void |
public Raycast ( IRayCastCallback callback, |
||
callback | IRayCastCallback | a user implemented callback class. |
point1 | the ray starting point | |
point2 | the ray ending point | |
return | void |
public Step ( float dt, int velocityIterations, int positionIterations ) : void | ||
dt | float | the amount of time to simulate, this should not vary. |
velocityIterations | int | for the velocity constraint solver. |
positionIterations | int | for the position constraint solver. |
return | void |
public World ( |
||
gravity | ||
return | System |
public World ( |
||
gravity | the world gravity vector. | |
argPool | IWorldPool | |
return | System |