C# Class TagTool.Geometry.PhysicsModelBuilder

ファイルを表示 Open project: TheGuardians/TagTool Class Usage Examples

Public Methods

Method Description
Build ( ) : PhysicsModel
ParseFromFile ( string fname ) : bool
PhysicsModelBuilder ( ) : System

Initialise the physics model to be built

Private Methods

Method Description
AddManyFVS ( PhysicsModel phmo, JSONNode n ) : int

Adds Four-vertex tag-blocks to the physics model. For lists of vertices that are not multiples of four, the last vertex is copied.

AddManyPlanes ( PhysicsModel phmo, JSONNode n ) : int

Adds planes to the physics model as described by the JSON node

AddPolyhedron ( PhysicsModel phmo, JSONNode n ) : bool
AddShape ( PhysicsModel phmo, JSONNode n ) : TagTool.TagDefinitions.PhysicsModel.RigidBody.ShapeTypeValue

Finds the type of the shape and adds it. Currently, only 'Polyhedron' is supported.

getNumberOfShapes ( PhysicsModel phmo, TagTool.TagDefinitions.PhysicsModel.RigidBody.ShapeTypeValue type ) : int

Gets the number of shapes in the list for the particular shape

Method Details

Build() public method

public Build ( ) : PhysicsModel
return TagTool.TagDefinitions.PhysicsModel

ParseFromFile() public method

public ParseFromFile ( string fname ) : bool
fname string
return bool

PhysicsModelBuilder() public method

Initialise the physics model to be built
public PhysicsModelBuilder ( ) : System
return System