This API is used in editor mode to manipulate groups of polygons
See also the OBJECT API for manipulating things in viewer_mode mode.
With this API you can group polygons together.
Example,
say we have a room with three tables inside. Each table has four legs
and each leg has 6 polygons. We will probably like to build it like that:
Group "leg" contains the six polygons
group "table" which will include the four "leg" groups and the table top polygons
group "room" which will include the three tables and the walls polygons
A general note for most of the functions in this API:
After a new group is created, polygons can be associated with this group
by calling STATE_polygon_set_group()
IMPORTANT: if the polygons that are associated with the group are not part of the
world (after creating a new polygon, we can add it to the world by calling STATE_engine_add_polygon() )
most of the function in the group API wont work for those polygons.
1. STATE_group_is_group
2. STATE_group_create 3. STATE_group_get_first_group 4. STATE_group_get_next 5. STATE_group_get_using_name 6. STATE_group_get_first_polygon 7. STATE_group_get_next_polygon 8. STATE_group_get_father_group 9. STATE_group_set_father_group 10. STATE_group_is_groupA_included_in_groupB 11. STATE_group_is_groupA_included_in_enabled_parts_of_groupB 12. STATE_group_get_name 13. STATE_group_get_rotate_reference_point 14. STATE_group_set_rotate_reference_point 15. STATE_group_get_center_of_mass 16. STATE_group_get_bounding_box 17. STATE_group_set_name 18. STATE_group_get_number_of_polygons 19. STATE_group_rotate 20. STATE_group_rotate_using_matrix 21. STATE_group_transform_using_matrix4x4 22. STATE_group_set_location 23. STATE_group_get_location 24. STATE_group_move 25. STATE_group_scale 26. STATE_group_get_dimensions 27. STATE_group_ungroup 28. STATE_group_delete_members 29. STATE_group_is_static 30. STATE_group_set_static 31. STATE_group_set_dynamic 32. STATE_group_load_as_disabled 33. STATE_group_get_load_as_disabled_status 34. STATE_group_duplicate_tree 35. STATE_group_rotate_to_match_polygon 36. STATE_group_rotate_around_line_to_match_polygon 37. STATE_group_rotate_to_match_direction 38. STATE_group_move_to_match_point 39. STATE_group_is_bitmap_used 40. STATE_group_count_intersections 41. STATE_group_get_bottom_polygon 42. STATE_group_get_top_polygon 43. STATE_group_get_front_polygon 44. STATE_group_get_back_polygon 45. STATE_group_set_orientation 46. STATE_group_calculate_axis_system 47. STATE_group_set_object_to_chase 48. STATE_group_get_chased_object 49. STATE_group_set_camera_to_chase 50. STATE_group_get_chased_camera 51. STATE_group_set_group_to_chase 52. STATE_group_get_chased_group 53. STATE_group_set_name_to_chase 54. STATE_group_get_chased_name 55. STATE_group_get_chase_offset 56. STATE_group_set_chase_offset 57. STATE_group_get_chase_softness 58. STATE_group_set_chase_softness 59. STATE_group_get_chase_type_name 60. STATE_group_get_chase_type 61. STATE_group_set_chase_type 62. STATE_group_set_track_name 63. STATE_group_get_track_name 64. STATE_group_get_track_offset 65. STATE_group_set_track_offset 66. STATE_group_set_falling_from_track 67. STATE_group_unset_falling_from_track 68. STATE_group_get_falling_from_track_params 69. STATE_group_get_speed 70. STATE_group_set_speed 71. STATE_group_get_absolute_speed 72. STATE_group_set_absolute_speed 73. STATE_group_rotate_to_match_axis_system 74. STATE_group_rotate_around_line 75. STATE_group_wrap_a_bitmap 76. STATE_group_reduce_polygons_count 77. STATE_group_create_reduced_copy 78. STATE_group_create_copy_made_of_triangles 79. STATE_group_is_rotation_enabled 80. STATE_group_convert_point_to_world_space 81. STATE_group_convert_point_to_group_space 82. STATE_group_set_chase_distance 83. STATE_group_get_chase_distance 84. STATE_group_delete_patches 85. STATE_group_set_patches_color 86. STATE_group_set_patches_bitmap 87. STATE_group_set_patches_translucent 88. STATE_group_get_physics_rotation 89. STATE_group_set_physics_rotation 90. STATE_group_set_physics_force 91. STATE_group_get_physics_force 92. STATE_group_get_physics_friction 93. STATE_group_set_physics_friction 94. STATE_group_get_physics_elasticity 95. STATE_group_set_physics_elasticity 96. STATE_group_get_physics_maxspeed 97. STATE_group_set_physics_maxspeed 98. STATE_group_set_control_number 99. STATE_group_get_control_number 100. STATE_group_wrap_a_bitmap_fixed 101. STATE_group_light_group 102. STATE_group_remove_light 103. STATE_group_set_color 104. STATE_group_set_light 105. STATE_group_set_ambient 106. STATE_group_set_diffuse 107. STATE_group_set_specular 108. STATE_group_create_lightmap 109. STATE_group_disable 110. STATE_group_is_disable 111. STATE_group_set_bitmap 112. STATE_group_get_first_included_group 113. STATE_group_get_next_included_group 114. STATE_group_calculate_points_normals
|