C# Class WorldControllers.Will

ファイルを表示 Open project: homoluden/fukami

Public Methods

Method Description
AddBody ( Body body ) : void

Adds the body into internal dictionary and underlying physical engine

AddJoint ( Joint joint ) : void
AddJoints ( IList joints ) : void

Adds the joints into internal dictionary and underlying physical engine

Warning: adding joints before adding bodies will generate exception!

AddModelBodies ( IList bodies ) : void

Adds the body into internal dictionary and underlying physical engine

GetWorldSnapshot ( ) : WorldSnapshot

Creates the copy of current World State

Purge ( ) : void
RunPauseWilling ( bool setToIsRunning = null ) : void

Private Methods

Method Description
OnEngineUpdated ( object sender, Physics2DDotNet.UpdatedEventArgs e ) : void
Will ( ) : System

Method Details

AddBody() public method

Adds the body into internal dictionary and underlying physical engine
public AddBody ( Body body ) : void
body Body The Body which value will be copied
return void

AddJoint() public method

public AddJoint ( Joint joint ) : void
joint Joint
return void

AddJoints() public method

Adds the joints into internal dictionary and underlying physical engine
Warning: adding joints before adding bodies will generate exception!
public AddJoints ( IList joints ) : void
joints IList The list of joints to add
return void

AddModelBodies() public method

Adds the body into internal dictionary and underlying physical engine
public AddModelBodies ( IList bodies ) : void
bodies IList The list of bodies to add
return void

GetWorldSnapshot() public method

Creates the copy of current World State
public GetWorldSnapshot ( ) : WorldSnapshot
return WorldSnapshot

Purge() public method

public Purge ( ) : void
return void

RunPauseWilling() public method

public RunPauseWilling ( bool setToIsRunning = null ) : void
setToIsRunning bool
return void