API Functions

 

 


   An object is a collection of polygons that can be manipulated together.
   This API is used in viewer_mode (the default mode) to manipulate moving objects (also referred\called dynamic objects)
   In viewer mode every world has a static part, for example the terrain the buildings etc.
   All the elements that can be moved or change shape are called objects or dynamic objects.
   Note that there are no static objects. There is just the static part of the world which is built from polygon
   and objects which are a collection of polygons that can be moved and manipulate together.
   
   Behind the scenes:
  		When turning (called rotating) or moving the object as well as any other of the object API function,
  		the 3DSTATE engine only changes the internal transformation matrixes
  		This means that even if you turn or move an object with thousands of polygons
  		the operation will be very qucik since the engine doesnt change the point values
  		of each one of the object's polygons
  		The complicated math is well hidden from the API user but at the same time
  		this API is totaly flexible allowing total freedom to the programmer
  
  
   See the GROUP API for manipulating elements in EDITOR mode.
   Note that some functions of the Group API also works in viewer mode
   (mainly those functions which do not move polygons or change their points) but not the other way around.

   

1. STATE_object_is_object

2. STATE_object_is_movement_possible

3. STATE_object_get_object_using_name

4. STATE_object_get_name

5. STATE_object_get_type_name

6. STATE_object_set_name

7. STATE_object_set_type_name

8. STATE_object_set_object_type_number

9. STATE_object_get_object_type_number

10. STATE_object_set_control_type_number

11. STATE_object_get_control_type_number

12. STATE_object_get_track_name

13. STATE_object_get_track_handle

14. STATE_object_get_first_object

15. STATE_object_get_next_object

16. STATE_object_set_location

17. STATE_object_set_location1

18. STATE_object_get_location

19. STATE_object_get_location1

20. STATE_object_move

21. STATE_object_set_direction

22. STATE_object_set_direction1

23. STATE_object_get_direction

24. STATE_object_get_direction1

25. STATE_object_set_axis_system

26. STATE_object_get_axis_system

27. STATE_object_get_x_axis

28. STATE_object_get_y_axis

29. STATE_object_get_z_axis

30. STATE_object_rotate_x

31. STATE_object_rotate_y

32. STATE_object_rotate_z

33. STATE_object_rotate_x_radians

34. STATE_object_rotate_y_radians

35. STATE_object_rotate_z_radians

36. STATE_object_get_cos_pitch

37. STATE_object_get_tilt

38. STATE_object_set_tilt

39. STATE_object_get_cos_bank

40. STATE_object_get_bank

41. STATE_object_set_bank

42. STATE_object_get_cos_head

43. STATE_object_get_total_move_mat

44. STATE_object_get_transformation_matrix

45. STATE_object_set_transformation_matrix

46. STATE_object_get_animation

47. STATE_object_replace_animation_using_names

48. STATE_object_replace_animation

49. STATE_object_convert_point_to_world_space

50. STATE_object_convert_point_to_object_space

51. STATE_object_set_track

52. STATE_object_get_track_offset

53. STATE_object_set_track_offset

54. STATE_object_get_next_point_on_track

55. STATE_object_set_next_point_on_track

56. STATE_object_set_object_to_chase

57. STATE_object_get_chased_object

58. STATE_object_set_camera_to_chase

59. STATE_object_get_chased_camera

60. STATE_object_set_group_to_chase

61. STATE_object_get_chased_group

62. STATE_object_get_chase_offset

63. STATE_object_set_chase_offset

64. STATE_object_get_chase_softness

65. STATE_object_set_chase_softness

66. STATE_object_get_chase_type

67. STATE_object_set_chase_type

68. STATE_object_set_falling_from_track

69. STATE_object_unset_falling_from_track

70. STATE_object_get_falling_from_track_params

71. STATE_object_get_location_on_track_before_falling

72. STATE_object_set_speed

73. STATE_object_get_speed

74. STATE_object_get_absolute_speed

75. STATE_object_set_absolute_speed

76. STATE_object_set_force

77. STATE_object_get_force

78. STATE_object_get_absolute_force

79. STATE_object_set_absolute_force

80. STATE_object_set_speed_direction

81. STATE_object_set_force_direction

82. STATE_object_set_max_speed

83. STATE_object_get_max_speed

84. STATE_object_set_friction

85. STATE_object_get_friction

86. STATE_object_set_elasticity

87. STATE_object_get_elasticity

88. STATE_object_advance_all

89. STATE_object_advance

90. STATE_object_update_3D_animation_frame

91. STATE_object_reset_distance_counter

92. STATE_object_get_distance_counter

93. STATE_object_get_bounding_box

94. STATE_object_get_dimensions

95. STATE_object_set_dimensions

96. STATE_object_duplicate

97. STATE_object_was_duplicated_with_polygons

98. STATE_object_delete

99. STATE_object_set_event

100. STATE_object_set_event_on_animation_frame

101. STATE_object_disable

102. STATE_object_enable

103. STATE_object_is_enabled

104. STATE_object_set_speed_units

105. STATE_object_get_speed_units

106. STATE_object_get_polygon

107. STATE_object_is_polygon_part_of

108. STATE_object_get_number_of_polygons

109. STATE_object_get_first_polygon

110. STATE_object_get_next_polygon

111. STATE_object_get_all_polygons

112. STATE_object_set_chase_distance

113. STATE_object_get_chase_distance

114. STATE_object_make_non_collisional

115. STATE_object_make_collisional

116. STATE_object_is_collisional

117. STATE_object_cancel_collision_test_for_chase_physics

118. STATE_object_enable_collision_test_for_chase_physics

119. STATE_object_is_collision_test_for_chase_physics

120. STATE_object_set_physics_rotation

121. STATE_object_get_physics_rotation

122. STATE_object_set_rotation_center

123. STATE_object_get_rotation_center

124. STATE_object_advance_automatically

125. STATE_object_set_father_object

126. STATE_object_get_father_object

127. STATE_object_is_objectA_included_in_objectB

128. STATE_object_get_first_son

129. STATE_object_get_next_son

130. STATE_object_get_first_direct_son

131. STATE_object_get_next_direct_son

132. STATE_object_move_including_sons

133. STATE_object_get_center_of_tree

134. STATE_object_set_location_of_tree

135. STATE_object_rotate_including_sons

136. STATE_object_remove_light

137. STATE_object_set_bitmap

138. STATE_object_create_from_file

139. STATE_object_create_from_file2

140. STATE_object_md3_create_from_file

141. STATE_object_md3_get_number_of_tags

142. STATE_object_md3_get_tag_name

143. STATE_object_md3_get_tag_number

144. STATE_object_md3_get_tag_transformation_matrix

145. STATE_object_md3_connect_models

146. STATE_object_md3_connect_models_automatic

147. STATE_object_md3_disconnect_models

148. STATE_object_create_from_text

149. STATE_object_add_text

150. STATE_object_get_text

151. STATE_object_get_3D_animation

152. STATE_object_set_3D_animation

153. STATE_object_set_3D_sequence

154. STATE_object_get_3D_sequence

155. STATE_object_replace_3D_sequence_when_finished

156. STATE_object_set_scale

157. STATE_object_get_scale

158. STATE_object_get_group_handle

159. STATE_object_set_light

160. STATE_object_create

161. STATE_object_add_polygon

162. STATE_object_create_lightmap

163. STATE_object_delete_polygon

164. STATE_object_drop_down

165. STATE_object_drop_down_fast

166. STATE_object_set_3D_animation_interpolation_mode

167. STATE_object_attach_my_own_data

168. STATE_object_get_my_own_data

169. STATE_object_copy_physics

170. STATE_object_create_line

171. STATE_object_create_effect

172. STATE_object_create_effect_from_text

173. STATE_object_render_into_environment_map

174. STATE_object_rotate_around_point

175. STATE_object_recenter_polygons

176. STATE_object_auto_add_shadows

177. STATE_object_is_auto_shadow_on

178. STATE_object_redefine_axis_system

179. STATE_object_get_center_height_above_ground

180. STATE_object_get_bounding_box_height_above_ground

181. STATE_object_set_rotated

182. STATE_object_get_rotated_type

183. STATE_object_set_3d_animation_update_rate

184. STATE_object_is_seen

 

 

Go to page 1     Select API

 

Copyright © 2007 3DSTATE Corporation. www.3dstate.com