Package pyffi :: Package formats :: Package cgf :: Class CgfFormat :: Class PhysicsData
[hide private]
[frames] | no frames]

Class PhysicsData

source code

                  object --+            
                           |            
      utils.graph.DetailNode --+        
                               |        
          utils.graph.GlobalNode --+    
                                   |    
object_models.xml.struct_.StructBase --+
                                       |
                                      CgfFormat.PhysicsData

Nested Classes [hide private]

Inherited from object_models.xml.struct_.StructBase: __metaclass__

Instance Methods [hide private]

Inherited from object_models.xml.struct_.StructBase: __init__, __str__, deepcopy, fix_links, get_attribute, get_basic_attribute, get_detail_child_names, get_detail_child_nodes, get_global_child_nodes, get_global_display, get_hash, get_links, get_refs, get_size, get_strings, get_template_attribute, read, replace_global_node, set_attribute, set_basic_attribute, set_template_attribute, tree, write

Inherited from utils.graph.GlobalNode: get_global_child_edge_types, get_global_iterator

Inherited from utils.graph.DetailNode: get_detail_child_edge_types, get_detail_display, get_detail_iterator

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from object_models.xml.struct_.StructBase: get_games, get_versions

Class Variables [hide private]
  _attribute_list = [<pyffi.object_models.xml.StructAttribute ob...
  _attrs = [<pyffi.object_models.xml.StructAttribute object at 0...
  _names = ['unknown_4', 'unknown_5', 'unknown_6', 'rot', 'cente...

Inherited from object_models.xml.struct_.StructBase: arg

Properties [hide private]
  center
Center, or position.
  cube
Cube data
  cylinder
Cylinder data
  polyhedron
Polyhedron data
  primitive_type
Describes the shape type: cube, polyhedron, cylinder, ...
  rot
Most definitely a quaternion.
  unknown_10
Mass?
  unknown_11
Usually 1.
  unknown_12
Another number, could be a count (observed values: 0, 1, 17, ...).
  unknown_13
  unknown_14
  unknown_4
Seems to be 1 in all cases observed.
  unknown_5
Unknown, does not seem to be flags.
  unknown_6
Inertia?
  unknown_shape_6
Unknown shape data

Inherited from object: __class__

Class Variable Details [hide private]

_attribute_list

Value:
[<pyffi.object_models.xml.StructAttribute object at 0x2755190>,
 <pyffi.object_models.xml.StructAttribute object at 0x27551d0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2755250>,
 <pyffi.object_models.xml.StructAttribute object at 0x27552d0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2755310>,
 <pyffi.object_models.xml.StructAttribute object at 0x2755350>,
 <pyffi.object_models.xml.StructAttribute object at 0x2755390>,
 <pyffi.object_models.xml.StructAttribute object at 0x27553d0>,
...

_attrs

Value:
[<pyffi.object_models.xml.StructAttribute object at 0x2755190>,
 <pyffi.object_models.xml.StructAttribute object at 0x27551d0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2755250>,
 <pyffi.object_models.xml.StructAttribute object at 0x27552d0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2755310>,
 <pyffi.object_models.xml.StructAttribute object at 0x2755350>,
 <pyffi.object_models.xml.StructAttribute object at 0x2755390>,
 <pyffi.object_models.xml.StructAttribute object at 0x27553d0>,
...

_names

Value:
['unknown_4',
 'unknown_5',
 'unknown_6',
 'rot',
 'center',
 'unknown_10',
 'unknown_11',
 'unknown_12',
...

Property Details [hide private]

center

Center, or position. Probably describes translation of the physics object. Often corresponds to the center of the mesh data as described in the submesh chunk.
Get Method:
<functools.partial object at 0x2756a48>
Set Method:
<functools.partial object at 0x2756aa0>

cube

Cube data
Get Method:
<functools.partial object at 0x27591b0>
Set Method:
<functools.partial object at 0x2759208>

cylinder

Cylinder data
Get Method:
<functools.partial object at 0x27593c0>
Set Method:
<functools.partial object at 0x2759418>

polyhedron

Polyhedron data
Get Method:
<functools.partial object at 0x27592b8>
Set Method:
<functools.partial object at 0x2759310>

primitive_type

Describes the shape type: cube, polyhedron, cylinder, ...
Get Method:
<functools.partial object at 0x27590a8>
Set Method:
<functools.partial object at 0x2759100>

rot

Most definitely a quaternion. Probably describes rotation of the physics object.
Get Method:
<functools.partial object at 0x2756940>
Set Method:
<functools.partial object at 0x2756998>

unknown_10

Mass?
Get Method:
<functools.partial object at 0x2756b50>
Set Method:
<functools.partial object at 0x2756ba8>

unknown_11

Usually 1.
Get Method:
<functools.partial object at 0x2756c58>
Set Method:
<functools.partial object at 0x2756cb0>

unknown_12

Another number, could be a count (observed values: 0, 1, 17, ...).
Get Method:
<functools.partial object at 0x2756d60>
Set Method:
<functools.partial object at 0x2756db8>

unknown_13

Get Method:
<functools.partial object at 0x2756e68>
Set Method:
<functools.partial object at 0x2756ec0>

unknown_14

Get Method:
<functools.partial object at 0x2756f70>
Set Method:
<functools.partial object at 0x2756fc8>

unknown_4

Seems to be 1 in all cases observed.
Get Method:
<functools.partial object at 0x2756680>
Set Method:
<functools.partial object at 0x27566d8>

unknown_5

Unknown, does not seem to be flags.
Get Method:
<functools.partial object at 0x2756788>
Set Method:
<functools.partial object at 0x27567e0>

unknown_6

Inertia?
Get Method:
<functools.partial object at 0x2756890>

unknown_shape_6

Unknown shape data
Get Method:
<functools.partial object at 0x27594c8>
Set Method:
<functools.partial object at 0x2759520>