Method | Description | |
---|---|---|
AddRope ( |
||
HandleMessage ( object sender, |
||
Initialize ( ) : void | ||
IsEmpty ( Vector2 Position ) : bool | ||
LoosenRope ( |
||
PhysicsControl ( Ballz game ) : Ballz.GameSession.World | ||
PhysicsStep ( World worldState, float elapsedSeconds ) : void |
Runs a single simulation step in the physics engine and syncs the state of the physics bodies back to the given world.
|
|
PreparePhysicsEngine ( World worldState ) : void |
Syncs the given world state into the physics world. Creates new physics bodies for entities that don't have one yet.
|
|
Raycast ( Vector2 rayStart, Vector2 rayEnd ) : RaycastResult | ||
RemoveBody ( |
||
RemoveEntity ( Entity e, World worldState ) : void |
Removes the physics body of the given entity from the physics world.
|
|
RemoveRope ( |
||
ShortenRope ( |
||
Update ( GameTime time ) : void | ||
UpdateTerrainBody ( |
Removes the old terrain physics bodies and replaces them with new ones, generated from the given terrain.
|
public AddRope ( |
||
rope | ||
return | void |
public HandleMessage ( object sender, |
||
sender | object | |
message | ||
return | void |
public LoosenRope ( |
||
rope | ||
return | void |
public PhysicsControl ( Ballz game ) : Ballz.GameSession.World | ||
game | Ballz | |
return | Ballz.GameSession.World |
public PhysicsStep ( World worldState, float elapsedSeconds ) : void | ||
worldState | World | |
elapsedSeconds | float | |
return | void |
public PreparePhysicsEngine ( World worldState ) : void | ||
worldState | World | |
return | void |
public Raycast ( Vector2 rayStart, Vector2 rayEnd ) : RaycastResult | ||
rayStart | Vector2 | |
rayEnd | Vector2 | |
return | RaycastResult |
public RemoveBody ( |
||
body | ||
return | void |
public RemoveEntity ( Entity e, World worldState ) : void | ||
e | Entity | |
worldState | World | |
return | void |
public RemoveRope ( |
||
rope | ||
return | void |
public ShortenRope ( |
||
rope | ||
return | void |
public UpdateTerrainBody ( |
||
terrain | ||
return | void |