Package pyffi :: Package formats :: Package nif :: Class NifFormat :: Class bhkRigidBody
[hide private]
[frames] | no frames]

Class bhkRigidBody

source code

                  object --+                                            
                           |                                            
      utils.graph.DetailNode --+                                        
                               |                                        
          utils.graph.GlobalNode --+                                    
                                   |                                    
object_models.xml.struct_.StructBase --+                                
                                       |                                
                     NifFormat._NiObject --+                            
                                           |                            
                          NifFormat.NiObject --+                        
                                               |                        
                         NifFormat._bhkRefObject --+                    
                                                   |                    
                              NifFormat.bhkRefObject --+                
                                                       |                
                               NifFormat.bhkSerializable --+            
                                                           |            
                                    NifFormat.bhkWorldObject --+        
                                                               |        
                                             NifFormat.bhkEntity --+    
                                                                   |    
                                             NifFormat._bhkRigidBody --+
                                                                       |
                                                                      NifFormat.bhkRigidBody
Known Subclasses:

Nested Classes [hide private]

Inherited from object_models.xml.struct_.StructBase: __metaclass__

Instance Methods [hide private]
 
apply_scale(self, scale)
Apply scale factor <scale> on data.
source code
 
update_mass_center_inertia(self, density=1, solid=True, mass=None)
Look at all the objects under this rigid body and update the mass, center of gravity, and inertia tensor accordingly.
source code

Inherited from bhkRefObject: get_shape_mass_center_inertia

Inherited from NiObject: find, find_chain, is_interchangeable, tree

Inherited from NiObject (private): _validateTree

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, 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...

Inherited from _bhkRigidBody (private): _attrs, _names

Inherited from bhkWorldObject (private): _has_links, _has_refs

Inherited from bhkSerializable (private): _games, _is_template

Inherited from object_models.xml.struct_.StructBase: arg

Properties [hide private]

Inherited from _bhkRigidBody: angular_damping, angular_velocity, center, col_filter_copy, constraints, friction, inertia, layer_copy, linear_damping, linear_velocity, mass, max_angular_velocity, max_linear_velocity, motion_system, num_constraints, penetration_depth, quality_type, restitution, rotation, translation, unknown_4_shorts, unknown_5_floats, unknown_7_shorts, unknown_byte_1, unknown_byte_2, unknown_int_6, unknown_int_7, unknown_int_8, unknown_int_9

Inherited from bhkWorldObject: col_filter, layer, shape, unknown_short

Inherited from object: __class__

Method Details [hide private]

apply_scale(self, scale)

source code 
Apply scale factor <scale> on data.
Overrides: NiObject.apply_scale

update_mass_center_inertia(self, density=1, solid=True, mass=None)

source code 
Look at all the objects under this rigid body and update the mass, center of gravity, and inertia tensor accordingly. If the C{mass} parameter is given then the C{density} argument is ignored.

Class Variable Details [hide private]

_attribute_list

Value:
[<pyffi.object_models.xml.StructAttribute object at 0x2ced2d0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2ced310>,
 <pyffi.object_models.xml.StructAttribute object at 0x2ced350>,
 <pyffi.object_models.xml.StructAttribute object at 0x2ced410>,
 <pyffi.object_models.xml.StructAttribute object at 0x2ced650>,
 <pyffi.object_models.xml.StructAttribute object at 0x2ced810>,
 <pyffi.object_models.xml.StructAttribute object at 0x2ced890>,
 <pyffi.object_models.xml.StructAttribute object at 0x2ced950>,
...