Exemplo n.º 1
0
 def b_create_data(self):
     b_obj = b_gen_geometry.b_create_cube(self.b_name)
     b_gen_uv.b_uv_object()
     b_gen_geometry.b_transform_cube(b_obj)
     
     b_mat = b_gen_material.b_create_material_block(b_obj)
     b_gen_material.b_create_set_default_material_property(b_mat)
     
     b_texture_node = b_gen_texture.b_create_textureslot(b_mat, 'Diffuse')
     b_gen_texture.b_create_load_texture(b_texture_node, self.diffuse_texture_path)
     b_gen_diffusemap.b_create_diffuse_texture_properties(b_texture_node)
Exemplo n.º 2
0
    def b_create_data(self):
        """Create a cube and bhkboxshape collision object"""

        # mesh obj
        b_gen_geometry.b_create_base_geometry(self.b_name)

        # col obj
        b_col_obj = b_gen_geometry.b_create_cube(self.b_col_name)
        b_gen_geometry.b_apply_object_scale()
        b_col_obj.matrix_local = b_gen_geometry.b_get_transform_matrix()
        b_gen_collision.b_create_default_collision_properties(b_col_obj)
        b_gen_bhkboxshape.b_create_bhkboxshape_properties(b_col_obj)
Exemplo n.º 3
0
 def b_create_data(self):
     b_obj = b_gen_geometry.b_create_cube(self.b_name)
     b_gen_uv.b_uv_object()
     b_gen_geometry.b_transform_cube(b_obj)
 def b_create_data(self):
     b_obj = b_gen_geometry.b_create_cube(
         self.b_name)  # (documented in base class)
     b_gen_geometry.b_transform_cube(
         b_obj)  # transform it into something less trivial