프로퍼티 | 타입 | 설명 | |
---|---|---|---|
ActiveContacts | int | ||
ContactPoolCount | int |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
Flags | int |
메소드 | 설명 | |
---|---|---|
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.
|
메소드 | 설명 | |
---|---|---|
AddType ( IDynamicStack |
||
DrawJoint ( |
||
DrawShape ( |
||
InitializeRegisters ( ) : void | ||
Solve ( |
||
SolveToi ( |
public CreateJoint ( |
||
def | ||
리턴 |
public PopContact ( |
||
fixtureA | ||
indexA | int | |
fixtureB | ||
indexB | int | |
리턴 |
public PushContact ( |
||
contact | ||
리턴 | void |
public QueryAABB ( IQueryCallback callback, |
||
callback | IQueryCallback | a user implemented callback class. |
aabb | the query box. | |
리턴 | void |
public Raycast ( IRayCastCallback callback, |
||
callback | IRayCastCallback | a user implemented callback class. |
point1 | the ray starting point | |
point2 | the ray ending point | |
리턴 | 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. |
리턴 | void |
public World ( |
||
gravity | the world gravity vector. | |
argPool | IWorldPool | |
리턴 | System |