def get_compressed_animation_header(hierarchy_name='hierarchy', flavor=ADAPTIVE_DELTA_FLAVOR): return CompressedAnimationHeader(version=get_version(major=1, minor=0), name='containerName', hierarchy_name=hierarchy_name, num_frames=155, frame_rate=300, flavor=flavor)
def get_box(name="BOUNDINGBOX"): return Box( version=get_version(), box_type=0, collision_types=0, name_="containerName." + name, color=get_rgba(), center=get_vector(1.0, 2.0, 3.0), extend=get_vector(4.0, 5.0, 6.0))
def get_collision_box(name='containerName.BOUNDINGBOX', xml=False): box = CollisionBox( version=get_version(), box_type=0, collision_types=0, name_=name, color=None, center=get_vec(1.0, 2.0, 3.0), extend=get_vec(4.0, 5.0, 6.0)) if not xml: box.color = get_rgba() return box
def get_hierarchy_header(name='TestHierarchy'): return HierarchyHeader(version=get_version(major=4, minor=1), name=name, num_pivots=0, center_pos=get_vec(0.0, 0.0, 0.0))
def get_hlod_header(model_name, hierarchy_name, lod_count=1): return HLodHeader( version=get_version(major=1, minor=0), lod_count=lod_count, model_name=model_name, hierarchy_name=hierarchy_name)
def get_hierarchy_header(name="TestHierarchy"): return HierarchyHeader(version=get_version(), name=name, num_pivots=0, center_pos=get_vector(0.0, 0.0, 0.0))