18 #define CPLUSPLUS_ONLY
33 class bdiScenarioCharacter;
66 class DtEntityStateRepository;
102 const char* get_name();
113 int set_name(
const char* name);
121 const char* get_type_name();
172 int update(
float t,
int full_update = 1);
187 void set_character_type(
const char* type);
210 const char* get_character_type_string();
235 const char* get_character_class();
273 int set_enabled(
int enabled);
302 void set_drawn_by_scenario_flag(
bool flag );
319 bool get_drawn_by_scenario_flag()
const;
337 void set_invisible_flag(
int invisible_flag);
340 int get_invisible_flag();
387 void set_was_drawn_last_frame(
bool drawn );
392 bool get_was_drawn_last_frame()
const;
399 void set_is_culled(
bool culled );
402 bool get_is_culled()
const;
410 int get_is_temporary();
421 int get_is_recycled();
440 int set_t_controlled_by_scenario_t(
int t_controlled_by_scenario_t);
448 int get_t_controlled_by_scenario_t();
478 int set_initial_tin(
float tin,
int override_time_warning = 0);
507 int set_initial_tout(
float tout);
553 int set_current_tin(
float tin);
566 int set_current_tin_to_now();
578 float get_current_tin();
600 int set_current_tout(
float tout,
601 int disable_character_at_tout = 0);
615 int set_current_tout_to_now();
623 float get_current_tout();
632 void set_tout_enabled(
int tout_enabled);
645 int get_tout_enabled();
648 float get_char_time();
672 int set_careful_interpolation_threshold(
float threshold);
680 float get_careful_interpolation_threshold();
698 int set_motion_interpolation_flag(
int flag);
706 int get_motion_interpolation_flag();
722 int set_scale(
float scale_x,
float scale_y,
float scale_z);
739 int get_scale(
float* scale_x,
float* scale_y,
float* scale_z);
764 int set_parent(
const char* parent_name,
const char* parent_link_name =
"");
788 const char* get_parent_link_name();
809 int get_num_children();
837 int get_is_scene_object();
854 int set_is_scene_object(
int is_scene_object);
867 float get_bounding_radius();
880 float get_default_bounding_radius();
888 void set_bounding_radius(
float f);
909 float get_time_to_transition();
912 float get_character_local_time();
955 int set_t_scale_factor(
float t_scale_factor);
971 int unset_t_scale_factor();
988 int is_within_distance_n_of_character(
const char* character_name,
1006 int is_within_distance_n_of_member_of_group(
const char* group_name,
1025 int is_group_member(
const char* group_name);
1035 int get_num_group_memberships();
1080 diguyCharacter* get_nearest_active_character(
int check_visibility,
1081 int xy_distance = 0,
1082 float max_distance_to_check = 100000);
1109 diguyCharacter* get_nearest_active_character_in_group(
const char* group_name,
1110 int check_visibility = 1,
1111 int xy_distance = 0,
1112 float max_distance_to_check = 100000);
1141 diguyCharacter* get_random_active_character(
float max_distance = 10.0f,
1142 int check_visibility = 1,
1143 int xy_distance = 0);
1173 diguyCharacter* get_random_active_character_in_group(
const char* group_name,
1174 float max_distance = 10,
1175 int check_visibility = 1,
1176 int xy_distance = 0);
1203 float get_distance_to_impact(
diguyImpact* impact);
1231 float get_random_factor();
1283 #ifdef CPLUSPLUS_ONLY
1304 void* get_graphics_ptr();
1331 int set_graphics_ptr(
void* graphics_ptr);
1349 void set_graphics_api_node_ptr(
void* node_ptr);
1356 void* get_graphics_api_node_ptr();
1374 int set_user_data(
void* user_data);
1381 void* get_user_data();
1441 int retain_path_shape = 0 );
1473 const char* get_desired_action();
1476 int get_desired_action_index();
1479 const char* get_current_action();
1482 int get_current_action_index();
1505 int get_is_in_action_transition();
1564 int force_action(
const char* action_name,
1566 int include_transition_arc = 1,
1567 float max_rampdown_interval = 0.5f,
1568 int retain_path_shape = 0,
1569 float t_offset_into_new_action = 0.0f);
1600 int force_action_with_duration(
const char* action_name,
1602 int include_transition_arc = 1,
1603 float max_rampdown_interval = 0.5f);
1626 int force_action_with_offset(
const char* action_name,
1628 int include_transition_arc = 1,
1629 float max_rampdown_interval = 0.5f,
1630 int retain_path_shape = 0,
1631 float t_offset_into_new_action = 0.0f,
1632 float x = 0,
float y = 0,
float z = 0 );
1664 int force_action_and_path_shape(
const char* action_name,
1665 const char* path_shape_name,
1666 const char* waypoint_name = NULL,
1667 float distance_into_path = 0.0f);
1711 const char* get_most_recent_forced_action();
1724 float get_most_recent_forced_action_t();
1738 float get_most_recent_forced_action_t_offset();
1765 int add_pending_desired_action(
const char* action,
1767 int remove_existing_pending_actions = 0,
1769 int retain_path_shape = 1);
1785 int add_pending_force_action(
const char* action,
1787 int remove_existing_pending_actions = 0,
1789 int include_transition_arc = 1,
1790 float max_rampdown_interval = 0.5f,
1791 int retain_path_shape = 1,
1792 float first_arc_time_shift = 0.0f);
1800 int is_valid_action(
const char* action);
1835 int die_now(
const char* preferred_dead_action_name =
"(default)");
1850 int revive_now(
const char* preferred_revive_action_name =
"(default)");
1891 int set_speed(
float speed);
1910 float get_desired_speed();
1935 int set_animation_target_el(
float elevation,
float ramp_time = .25f);
1938 float get_animation_target_el();
1946 int set_animation_target_az(
float azimuth,
float ramp_time = .25f);
1949 float get_animation_target_az();
1971 void set_animation_velocity(
float vel_x,
float vel_y,
float vel_z,
float ramp_time = 0.10f);
1974 void get_animation_velocity(
float *vel_x,
float *vel_y,
float *vel_z);
1986 void set_animation_local_velocity(
float vel_x,
float vel_y,
float vel_z,
float ramp_time = 0.10f);
1989 void get_animation_local_velocity(
float *vel_x,
float *vel_y,
float *vel_z);
1997 void set_animation_angular_velocity(
float vel_rz,
float ramp_time = .25f);
2000 float get_animation_angular_velocity();
2051 int set_position(
float tx,
float ty,
float tz);
2073 int set_position_double(
double tx,
double ty,
double tz);
2093 int get_position(
float* tx,
float* ty,
float* tz);
2117 int get_position_double(
double* tx,
double* ty,
double* tz);
2145 int set_position_relative_to_parent(
float tx,
float ty,
float tz);
2166 int get_position_relative_to_parent(
float* tx,
float* ty,
float* tz);
2200 int set_position_to_other_character_position(
const char* other_character_name,
2201 const char* other_link_name = NULL,
2202 float offset_x = 0.0f,
float offset_y = 0.0f,
float offset_z = 0.0f,
2203 int also_set_orientation = 1);
2226 int set_desired_position(
float tx,
float ty,
float tz,
2227 int force_guide_unacquired = 0);
2229 int set_desired_position_double(
double tx,
double ty,
double tz,
2230 int force_guide_unacquired = 0);
2251 int set_desired_position_to_current_position(
int also_set_orientation = 1);
2281 int set_desired_position_to_waypoint(
diguyWaypoint* waypoint,
2282 float offset_x = 0.0f,
float offset_y = 0.0f,
float offset_z = 0.0f,
2283 int offset_in_world_coords = 0);
2306 int set_desired_position_to_path_waypoint(
const char* path_name,
2307 const char* waypoint_name);
2330 int set_desired_position_to_path_shape_waypoint(
const char* path_shape_name,
2331 const char* waypoint_name);
2352 int get_desired_position(
float* tx,
float* ty,
float* tz);
2353 int get_desired_position_double(
double* tx,
double* ty,
double* tz);
2374 int get_delta_to_desired_position(
float* tx,
float* ty,
float* tz);
2393 int set_initial_position(
float tx,
float ty,
float tz);
2416 int get_initial_position(
float* tx,
float* ty,
float* tz);
2448 int set_orientation(
float rz,
float rx,
float ry);
2474 int get_orientation(
float* rz,
float* rx,
float* ry);
2502 int set_orientation_relative_to_parent(
float rz,
float rx,
float ry);
2524 int get_orientation_relative_to_parent(
float* rz,
float* rx,
float* ry);
2574 int set_initial_up_vector_type(
char axis);
2583 int set_initial_up_vector(
char axis);
2590 char get_initial_up_vector_type();
2599 char get_initial_up_vector();
2622 int set_up_vector_type(
char axis);
2631 int set_up_vector(
char axis);
2638 char get_up_vector_type();
2647 char get_up_vector();
2677 int set_custom_orientation_rx_and_ry(
float rx,
2700 int set_desired_orientation(
float rz,
float rx,
float ry,
2701 int force_guide_unacquired = 0);
2723 int get_desired_orientation(
float* rz,
float* rx,
float* ry);
2746 int get_delta_to_desired_orientation(
float* rz,
float* rx,
float* ry);
2763 int set_desired_orientation_to_current_orientation();
2780 int set_desired_orientation_towards_position(
float x,
float y,
float z,
2781 int force_guide_unacquired = 0);
2801 int set_initial_orientation(
float rz,
float rx,
float ry);
2826 int get_initial_orientation(
float* rz,
float* rx,
float* ry);
2848 int get_link_position(
const char* link_name,
2849 float* tx,
float* ty,
float* tz,
2850 float* rz,
float* rx,
float* ry);
2872 int get_link_position_double(
const char* link_name,
2873 double* tx,
double* ty,
double* tz,
2874 double* rz,
double* rx,
double* ry);
2896 int get_link_position_with_offset(
const char* link_name,
2897 float offset_tx,
float offset_ty,
float offset_tz,
2898 float* tx,
float* ty,
float* tz,
2899 float* rz,
float* rx,
float* ry);
2921 int get_link_position_with_offset_double(
const char* link_name,
2922 double offset_tx,
double offset_ty,
double offset_tz,
2923 double* tx,
double* ty,
double* tz,
2924 double* rz,
double* rx,
double* ry);
2948 int get_link_relative_position(
const char* beginning_link_name,
2949 const char* ending_link_name,
2950 float* tx,
float* ty,
float* tz,
2951 float* rz,
float* rx,
float* ry);
2976 int get_link_relative_position_with_offset(
const char* beginning_link_name,
2977 const char* ending_link_name,
2978 float offset_tx,
float offset_ty,
float offset_tz,
2979 float* tx,
float* ty,
float* tz,
2980 float* rz,
float* rx,
float* ry);
3008 void set_apply_actor_scale_to_action_bead_travel(
int apply_scale_flag);
3015 int get_apply_actor_scale_to_action_bead_travel();
3028 int local_to_global(
float x,
float y,
float z,
3029 float* res_x,
float* res_y,
float* res_z);
3042 int global_to_local(
float x,
float y,
float z,
3043 float* res_x,
float* res_y,
float* res_z);
3060 void get_velocity(
float* vel_x,
float* vel_y,
float* vel_z);
3064 void get_acceleration(
float* accel_x,
float* accel_y,
float* accel_z);
3075 void set_desired_velocity(
float vel_x,
float vel_y,
float vel_z,
float ramp_time = 0.0);
3076 void get_desired_velocity(
float *vel_x,
float *vel_y,
float *vel_z);
3092 void get_angular_velocity(
float* vel_rz);
3100 void set_desired_angular_velocity(
float vel_rz);
3101 void get_desired_angular_velocity(
float* vel_rz);
3126 const char* get_appearance();
3147 int set_appearance(
const char* appearance);
3179 int set_current_appearance(
const char* appearance,
3180 int allow_actor_change = 1);
3183 const char* get_current_appearance();
3198 int get_current_appearance_is(
const char* appearance );
3215 int set_head_appearance(
const char* head_appearance);
3226 int set_current_head_appearance(
const char* head_appearance);
3229 const char* get_current_head_appearance();
3232 int get_num_compatible_head_appearances();
3235 const char* get_compatible_head_appearance_at_index(
int index);
3238 int get_num_compatible_facefx_head_appearances();
3241 const char* get_compatible_facefx_head_appearance_at_index(
int index);
3255 int get_current_head_appearance_is(
const char* head_appearance);
3274 int set_hand_item(
const char* hand_item_appearance );
3283 const char* get_hand_item();
3300 int set_current_hand_item(
const char* hand_item_appearance);
3308 const char* get_current_hand_item();
3315 const char* get_current_hand_item_type();
3318 const char* get_actor();
3322 int add_equipment_appearance(
const char* equipment_appearance );
3325 int reset_equipment_appearance(
const char* class_type );
3328 int reset_equipment_appearance();
3331 int get_num_equipment();
3334 const char* get_equipment_name_at_index(
int index );
3337 const char* get_equipment_type_at_index(
int index );
3340 int get_equipment_index_at_index(
int index );
3343 int add_equipment_by_index(
int index );
3352 int set_use_texture_variations(
int value);
3359 int get_use_texture_variations();
3363 void set_texture_variation_seed(
float seed);
3366 int get_supports_texture_variations();
3370 int get_supports_weight_variations();
3375 void set_weight_scale(
float weight );
3378 float get_weight_scale();
3382 int set_blend_shape_weight(
const char * name,
float weight);
3388 bool set_unit_patch_by_name(
const char* name,
bool set_personal_patch =
false );
3389 const char* get_unit_patch_name()
const;
3391 bool set_personal_unit_patch_by_name(
const char* name );
3392 const char* get_personal_unit_patch_name()
const;
3413 bool set_rank_patch_by_name(
const char* name );
3414 const char* get_rank_patch_name()
const;
3430 bool set_uniform_label_text(
const char* name );
3431 const char* get_uniform_label_text()
const;
3510 int set_lod_ranges(
float* lod_ranges);
3512 #ifdef CPLUSPLUS_ONLY
3513 float* get_lod_ranges();
3538 int set_graphics_lod(
float lod);
3541 int get_graphics_lod();
3544 float get_graphics_lod_fraction();
3548 int set_allow_instancing(
int value);
3551 int get_allow_instancing()
const;
3554 void set_is_instanced(
int val );
3558 int get_is_instanced()
const;
3561 int can_lod_be_instanced(
int lod );
3574 int set_final_tbo_position_matrix(
int include_local_to_global_transform,
3575 float a0,
float a1,
float a2,
float a3,
3576 float b0,
float b1,
float b2,
float b3,
3577 float c0,
float c1,
float c2,
float c3);
3596 int set_shader_lod(
int lod);
3599 int get_shader_lod();
3603 int get_has_bump_maps();
3640 int set_motion_lod(
int motion_lod);
3643 int get_motion_lod();
3646 int get_current_motion_lod();
3709 int set_minimum_cpl(
int minimum_cpl);
3712 int get_minimum_cpl();
3729 int get_maximum_possible_current_cpl();
3751 int maximize_current_cpl();
3772 int set_automatic_cpl_switching_enabled(
int enabled);
3775 int get_automatic_cpl_switching_enabled();
3800 int set_current_cpl(
int current_cpl);
3803 int get_current_cpl();
3840 int set_position_update_rate(
int update_rate);
3843 int get_position_update_rate();
3878 int set_pose_update_rate(
int update_rate);
3881 int get_pose_update_rate();
3907 int set_minimum_full_update_period(
float min_period);
3910 float get_minimum_full_update_period();
3937 int set_position_accumulation_disabled(
int disabled_flag);
3940 int get_position_accumulation_disabled();
3963 int set_all_blends_disabled(
int disabled_flag);
3966 int get_all_blends_disabled();
3997 int set_shape_callbacks_disabled(
int disabled_flag);
4000 int get_shape_callbacks_disabled();
4021 int set_graphics_api_shape_update_disabled(
int disabled_flag);
4024 int get_graphics_api_shape_update_disabled();
4063 int optimized_update(
float t);
4088 int set_is_load_managed(
int is_load_managed);
4091 int get_is_load_managed();
4095 void get_load_manager_current_update_rates(
float & zone,
int & pose_update_rate,
4096 int & position_update_rate,
int & alt_update_rate);
4553 CALLBACK_ID_CREATE = 1,
4554 CALLBACK_ID_DESTROY,
4555 CALLBACK_ID_PRE_CREATE,
4556 CALLBACK_ID_CURRENT_APPEARANCE_CHANGED,
4557 CALLBACK_ID_CURRENT_HEAD_APPEARANCE_CHANGED,
4558 CALLBACK_ID_CURRENT_HAND_ITEM_APPEARANCE_CHANGED,
4559 CALLBACK_ID_CURRENT_EQUIPMENT_APPEARANCE_CHANGED,
4560 CALLBACK_ID_SHAPE_VARIATIONS_CHANGED,
4561 CALLBACK_ID_SHAPE_VISIBILITY_CHANGED,
4562 CALLBACK_ID_PRE_UPDATE,
4563 CALLBACK_ID_POST_UPDATE,
4564 CALLBACK_ID_DONE_SPEAKING,
4565 CALLBACK_ID_GAZE_STATUS,
4566 CALLBACK_ID_LPOINT_STATUS,
4569 CALLBACK_ID_PRE_DIE,
4570 CALLBACK_ID_POST_DIE,
4571 CALLBACK_ID_PRE_FIRE_WEAPON,
4572 CALLBACK_ID_POST_FIRE_WEAPON,
4574 CALLBACK_ID_FIRE_WEAPON_SUCCESS,
4575 CALLBACK_ID_CURRENT_ARC_CHANGED,
4576 CALLBACK_ID_CURRENT_ACTION_CHANGED,
4577 CALLBACK_ID_DESIRED_ACTION_CHANGED,
4578 CALLBACK_ID_DESIRED_ACTION_REACHED,
4579 CALLBACK_ID_MANUALLY_INVOKED,
4580 CALLBACK_ID_USER_SELECTED,
4581 CALLBACK_ID_USER_UNSELECTED,
4582 CALLBACK_ID_IGUY_INTERACT,
4583 CALLBACK_ID_IGUY_INTERACT_WITH_SUBJECT,
4584 CALLBACK_ID_GUIDE_POSITION_ACQUIRED,
4585 CALLBACK_ID_GUIDE_POSITION_UNACQUIRED,
4586 CALLBACK_ID_GUIDE_ORIENTATION_ACQUIRED,
4587 CALLBACK_ID_GUIDE_ORIENTATION_UNACQUIRED,
4588 CALLBACK_ID_GUIDE_ALTITUDE_ACQUIRED,
4589 CALLBACK_ID_GUIDE_ALTITUDE_UNACQUIRED,
4590 CALLBACK_ID_GUIDE_TARGET_LOST,
4591 CALLBACK_ID_CURRENT_TOUT_REACHED,
4592 CALLBACK_ID_POST_CREATE_GEOMETRY,
4593 CALLBACK_ID_PRE_DESTROY_GEOMETRY,
4594 CALLBACK_ID_END_OF_PATH_REACHED,
4595 CALLBACK_ID_CHARACTER_CLICKED,
4598 CALLBACK_ID_UI_PRE_TRANSLATION,
4599 CALLBACK_ID_UI_POST_TRANSLATION,
4600 CALLBACK_ID_UI_MOUSE_DOWN,
4601 CALLBACK_ID_UI_MOUSE_UP,
4602 CALLBACK_ID_UI_RIGHT_MOUSE_DOWN,
4603 CALLBACK_ID_UI_RIGHT_MOUSE_UP,
4604 CALLBACK_ID_UI_LEFT_CLICK,
4605 CALLBACK_ID_UI_RIGHT_CLICK,
4606 CALLBACK_ID_UI_DOUBLE_CLICK,
4607 CALLBACK_ID_UI_MIDDLE_CLICK,
4608 CALLBACK_ID_UI_SCROLL_UP,
4609 CALLBACK_ID_UI_SCROLL_DOWN,
4613 CALLBACK_ID_AGENT_NEW_BEHAVIOR,
4614 CALLBACK_ID_AGENT_NEW_PATH_SHAPE,
4615 CALLBACK_ID_AGENT_NEW_FOCUS_CHARACTER,
4616 CALLBACK_ID_AGENT_ATTACK_OUT_OF_TARGETS,
4617 CALLBACK_ID_AGENT_ATTACK_NO_VISIBLE_TARGETS,
4618 CALLBACK_ID_AGENT_PURSUE_TARGET_REACHED,
4619 CALLBACK_ID_AGENT_PURSUE_TARGET_LOST,
4620 CALLBACK_ID_AGENT_MINGLE_TARGET_REACHED,
4621 CALLBACK_ID_AGENT_MINGLE_TARGET_LOST,
4622 CALLBACK_ID_AGENT_WANDER_TARGET_REACHED,
4623 CALLBACK_ID_AGENT_WANDER_TARGET_LOST,
4624 CALLBACK_ID_AGENT_FLEE_AREA_LEFT,
4625 CALLBACK_ID_AGENT_FLEE_AREA_ENTERED,
4626 CALLBACK_ID_AGENT_TRAVEL_WAYPOINT_REACHED,
4627 CALLBACK_ID_AGENT_TRAVEL_FORWARD_DEST_REACHED,
4628 CALLBACK_ID_AGENT_TRAVEL_BACKWARD_DEST_REACHED,
4629 CALLBACK_ID_AGENT_TRAVEL_NEAR_FORWARD_DEST,
4630 CALLBACK_ID_AGENT_CROWD_MEMBER_KILLED,
4631 CALLBACK_ID_AGENT_CROWD_MEMBER_IMPACT,
4632 CALLBACK_ID_AGENT_NEARBY_SCENE_OBJECT_IMPACT,
4633 CALLBACK_ID_AGENT_NEARBY_WEAPON_FIRED,
4634 CALLBACK_ID_AGENT_VEHICLE_COLLISION,
4635 CALLBACK_ID_AGENT_VEHICLE_NEAR_COLLISION,
4636 CALLBACK_ID_AGENT_PATH_PLAN_COMPLETED,
4637 CALLBACK_ID_AGENT_MIND_CURRENT_STATE_CHANGED,
4638 CALLBACK_ID_AGENT_NON_ZERO_REPULSION,
4639 CALLBACK_ID_AGENT_ZERO_REPULSION
4642 #ifdef CPLUSPLUS_ONLY
4670 int add_callback(
int callback_id,
4672 void* callback_params = 0,
4673 void* callback_user_data = 0);
4691 int remove_callback(
int callback_id,
4711 int remove_callback_with_user_data(
int callback_id,
4712 void* callback_user_data);
4764 int add_callback_script(
int callback_id,
4765 const char* callback_script,
4766 const char* callback_script_type = NULL);
4807 int remove_callback_script(
int callback_id,
4808 const char* callback_script,
4809 const char* callback_script_type = NULL);
4850 int map_event_handler_to_callback_id(
int callback_id,
4851 const char* handler_name);
4870 int unmap_event_handler_from_callback_id(
int callback_id,
4871 const char* handler_name,
4872 int unmap_all_matches = 0);
4992 const char* transition_from_action_name,
4993 const char* fill_action_name,
4994 const char* transition_to_action_name);
5019 const char* transition_from_action_name,
5020 const char* fill_action_name,
5021 const char* transition_to_action_name);
5063 int create_and_force_bridge_path(
const char* destination_path_name,
5064 const char* destination_path_action_bead_name,
5065 const char* via_action_name);
5115 int create_and_force_bridge_path_to_point(
float x,
float y,
float z,
5117 const char* via_action_name,
5118 const char* next_local_path = NULL,
5119 float orientation = 0.0f);
5146 int get_num_paths();
5166 const char* get_path_name_at_index(
int index);
5185 int get_current_path_index();
5218 int get_current_traveled_path_is(
const char* path_name);
5239 int push_path(
const char* path_name);
5264 int force_path(
const char* path_name,
5265 float max_rampdown_interval = 0.5f);
5278 int force_partial_path(
const char* path_name,
5279 const char* beginning_action_bead_name,
5280 float max_rampdown_interval = 0.5f);
5316 int resume_interrupted_path(
float max_rampdown_interval = 0.5f);
5341 int use_character_orientation,
5342 float rotation = 0.0f,
5343 int clamp_path = 1);
5359 int set_initial_path(
const char* name);
5373 const char* get_initial_path();
5385 void translate_all_paths(
float tx,
float ty,
float tz,
5386 int reclamp_waypoints = 1);
5404 int rotate_all_paths_about_point(
float rz,
float rx,
float ry,
5405 float rotation_pt_x,
float rotation_pt_y,
float rotation_pt_z,
5406 int reclamp_waypoints = 1);
5423 int rotate_all_paths_about_current_waypoint(
float rz,
float rx,
float ry,
5424 int reclamp_waypoints = 1);
5446 int jump_to_action_bead(
const char* bead_name,
5447 float max_rampdown_interval = 0.5f);
5484 float how_far = 0.0f);
5505 float how_far = 0.0f);
5526 float how_far = 0.0f);
5547 float how_far = 0.0f);
5571 int set_distance_along_path(
float distance);
5583 float get_distance_along_path();
5617 int get_nearest_waypoint_index_in_path(
const char* path_name);
5624 float get_distance_to_path(
const char* path_name,
5625 const char* action_bead_name = NULL);
5660 int get_num_links();
5698 const char* get_link_name_at_index(
int link_index);
5709 int get_num_link_shapes(
const char* link_name);
5721 const char* get_link_shape_name_at_index(
const char* link_name,
5725 void set_link_visibility(
const char* link_or_connection_name,
int visible,
int shape_index = -1);
5728 int get_num_connection_points();
5732 const char * get_connection_point_name_at_index(
int index);
5735 bool get_connection_point_info_at_index(
int index,
diguyGraphicsLink** link,
float* matrix_offset,
int transpose);
5746 bool find_connection_point(
const char* name,
diguyGraphicsLink** link,
float* matrix_offset,
int transpose);
5752 int remove_shape(
const char* shape_name);
5769 int set_link_translation_override(
const char * link_name,
float x,
float y,
float z,
float ramp_time = .25f);
5773 int set_link_translation_override(
const char * link_name,
float x,
float y,
float z,
float vx,
float vy,
float vz,
float ramp_time = .25f);
5776 int end_link_translation_override(
const char * link_name,
float ramp_time = .25f);
5779 int set_link_rotation_override(
const char * link_name,
float rz,
float rx,
float ry,
float ramp_time = .25f);
5780 int set_link_rotation_override(
const char * link_name,
float rz,
float rx,
float ry,
float vrx,
float vry,
float vrz,
float ramp_time = .25f);
5783 int end_link_rotation_override(
const char * link_name,
float ramp_time = .25f);
5797 int get_num_articulated_parts();
5801 const char* get_articulated_part_link_name(
int index );
5804 int get_articulated_part_id(
int index );
5807 const char* map_articulated_part_id_to_link(
int id );
5832 #ifdef CPLUSPLUS_ONLY
5911 int set_altitude_function_enabled_in_free_position_mode(
int enabled);
5920 int get_altitude_function_enabled_in_free_position_mode();
5946 int set_altitude_function_enabled_in_path_position_mode(
int value);
5955 int get_altitude_function_enabled_in_path_position_mode();
5981 int set_altitude_update_rate(
int update_rate);
5984 int get_altitude_update_rate();
6008 void set_altitude_interpolation_rate(
float interpolation_rate);
6011 float get_altitude_interpolation_rate();
6135 int get_pose_array_size();
6137 #ifdef CPLUSPLUS_ONLY
6170 int get_pose_in_radians(
float* pose_array);
6173 int get_pose_in_quaternions(
float* pose_array);
6221 int get_num_pose_overrides();
6264 void destroy_complete_pose_override();
6305 int gaze_at_angle(
float azimuth,
6308 int is_new_gaze = 1);
6324 int gaze_at_angle_local(
float azimuth,
6326 float distance = 10000.0f,
6327 int is_new_gaze = 1);
6352 int gaze_at_point(
float tx,
6355 int is_new_gaze = 1);
6367 int gaze_at_point_local(
float tx,
6370 int is_new_gaze = 1);
6406 int gaze_at_character(
const char* target_character_name,
6407 const char* target_character_link_name = NULL,
6408 float offset_tx = 0.0f,
6409 float offset_ty = 0.0f,
6410 float offset_tz = 0.0f);
6417 int get_gaze_is_active();
6425 int get_gaze_point(
float* x,
float* y,
float* z);
6452 int get_gaze_is_acquired();
6479 int get_gaze_is_steady();
6516 int lpoint_at_angle(
float azimuth,
6519 int is_new_lpoint = 1,
6520 const char* base_gesture_name = 0);
6532 int lpoint_at_angle_local(
float azimuth,
6534 float distance = 10000.0f,
6535 int is_new_lpoint = 1,
6536 const char* base_gesture_name = 0);
6569 int lpoint_at_point(
float tx,
6572 int is_new_lpoint = 1,
6573 const char* base_gesture_name = 0);
6585 int lpoint_at_point_local(
float tx,
6588 int is_new_lpoint = 1,
6589 const char* base_gesture_name = 0);
6600 int lpoint_at_character(
const char* target_character_name,
6601 const char* target_character_link_name = NULL,
6602 float offset_tx = 0.0f,
6603 float offset_ty = 0.0f,
6604 float offset_tz = 0.0f);
6612 int get_lpoint_point(
float* x,
float* y,
float* z);
6619 const char* get_lpoint_base_gesture_name();
6626 int get_lpoint_is_active();
6636 int get_lpoint_is_acquired();
6646 int get_lpoint_is_steady();
6678 int set_gaze_params_to_defaults();
6709 int set_gaze_param_desired_locate_time(
float t);
6716 float get_gaze_param_desired_locate_time();
6750 int set_gaze_link_uses_desired_locate_time(
const char* link_name,
6751 int uses_desired_locate_time);
6758 int get_gaze_link_uses_desired_locate_time(
const char* link_name);
6785 int set_gaze_link_azimuth_limits(
const char* link_name,
float min,
float max);
6792 int get_gaze_link_azimuth_limits(
const char* link_name,
6821 int set_gaze_link_elevation_limits(
const char* link_name,
6826 int get_gaze_link_elevation_limits(
const char* link_name,
6865 int set_gaze_link_azimuth_tolerance(
const char* link_name,
6870 int get_gaze_link_azimuth_tolerance(
const char* link_name,
6898 int set_gaze_link_elevation_tolerance(
const char* link_name,
6903 int get_gaze_link_elevation_tolerance(
const char* link_name,
6930 int set_gaze_link_max_angular_vel(
const char* link_name,
float angular_vel);
6933 int get_gaze_link_max_angular_vel(
const char* link_name,
float* angular_vel);
6970 int set_gaze_link_scale_factor(
const char* link_name,
float scale_factor);
6973 int get_gaze_link_scale_factor(
const char* link_name,
float* scale_factor);
6999 int set_link_enabled_for_gaze(
const char* link_name,
int enabled);
7002 int get_link_enabled_for_gaze(
const char* link_name);
7020 int set_gaze_can_change_posture(
int enabled);
7023 int get_gaze_can_change_posture();
7041 int set_gaze_can_change_variant(
int enabled);
7044 int get_gaze_can_change_variant();
7070 int set_link_enabled_for_lpoint(
const char* link_name,
int enabled);
7073 int get_link_enabled_for_lpoint(
const char* link_name);
7099 int set_nod(
float azimuth,
7101 float duration = 0.5f);
7147 int nod_head(
float duration,
7149 float nod_elevation0 = 15.0f,
7150 float nod_elevation1 = 0.0f,
7151 float nod_elevation_out = 0.0f);
7179 int shake_head(
float duration,
7181 float shake_azimuth0 = -20.0f,
7182 float shake_azimuth1 = 20.0f,
7183 float shake_azimuth_out = 0.0f);
7191 float get_nod_azimuth();
7199 float get_nod_elevation();
7248 int set_aim(
float azimuth,
float elevation);
7286 int aim_at_angle(
float azimuth,
7289 int is_new_aim = 1);
7306 int aim_at_angle_local(
float azimuth,
7309 int is_new_aim = 1);
7321 int aim_at_angle_with_velocity(
float azimuth,
float elevation,
float az_vel,
float el_vel,
int local,
int is_new_aim = 1);
7347 int aim_at_point(
float x,
float y,
float z,
int is_new_aim = 1);
7360 int aim_at_point_local(
float x,
float y,
float z,
int is_new_aim = 1);
7400 int aim_at_character(
const char* target_character_name,
7401 const char* target_character_link_name = NULL,
7402 float offset_tx = 0.0f,
7403 float offset_ty = 0.0f,
7404 float offset_tz = 0.0f);
7416 const char * get_aim_at_character();
7419 float get_aim_azimuth();
7422 float get_aim_elevation();
7445 int get_aim_trajectory(
float* muzzle_x,
float* muzzle_y,
float* muzzle_z,
7446 float* far_x,
float* far_y,
float* far_z);
7459 int get_aim_is_possible();
7466 int get_aim_is_acquired();
7474 int get_aim_is_steady();
7482 int get_is_aiming();
7524 void set_aim_param_acquire_factor(
float factor);
7531 float get_aim_param_acquire_factor();
7548 void set_aim_param_new_aim_factor(
float factor);
7551 float get_aim_param_new_aim_factor();
7577 void set_aim_param_new_aim_duration(
float duration);
7580 float get_aim_param_new_aim_duration();
7595 void set_aim_param_max_per_frame_adj_factor(
float factor);
7598 float get_aim_param_max_per_frame_adj_factor();
7618 void set_aim_param_azimuth_acquired_range(
float range);
7621 float get_aim_param_azimuth_acquired_range();
7641 void set_aim_param_elevation_acquired_range(
float range);
7644 float get_aim_param_elevation_acquired_range();
7655 void set_aim_converge_every_frame(
int enabled );
7658 int get_aim_converge_every_frame();
7662 int set_aim_variable_interpolation_time(
float time);
7663 float get_aim_variable_interpolation_time();
7669 const char* get_aim_at_link();
7673 int get_aim_at_link_offset(
float* offset_x,
float* offset_y,
float* offset_z);
7676 const char* get_gaze_at_link();
7679 int get_gaze_at_link_offset(
float* offset_x,
float* offset_y,
float* offset_z);
7751 int fire_weapon_n_times(
int count,
7753 const char* override_sound_name = NULL,
7771 int fire_screen_space_bullet(
diguyView* view,
float x,
float y);
7799 int set_default_weapon_muzzle(
diguyMuzzle muzzle);
7866 const char* get_weapon_muzzle_munition_type(
diguyMuzzle muzzle);
7869 const char* get_weapon_supplemental_data_name();
7872 const char* get_default_muzzle_munition_type();
7888 int set_weapon_munition_type_override(
const char* munition_type);
7891 const char* get_weapon_munition_type_override();
7914 int set_weapon_fires_live_rounds(
int weapon_fires_live_rounds);
7924 int get_weapon_fires_live_rounds();
7951 int set_weapon_sound_override(
const char* sound_name);
7966 const char* get_weapon_sound_override();
7991 int set_weapon_sound_gain_override(
float gain);
7994 float get_weapon_sound_gain_override();
8018 void set_weapon_spread(
float spread);
8040 void set_weapon_near_range(
float near_range);
8041 float get_weapon_near_range();
8056 void set_weapon_far_range(
float far_range );
8057 float get_weapon_far_range();
8069 void set_weapon_hit_ratio(
float hit_ratio );
8078 void set_weapon_flash_duration(
int muzzle_flash_duration );
8089 void set_weapon_max_impacts(
int val );
8096 int get_accessory1_state();
8103 int get_rifle_state();
8122 int set_weapon_projectile_is_visible(
diguyMuzzle muzzle,
int is_visible);
8138 int get_weapon_projectile_is_visible(
diguyMuzzle muzzle);
8172 int get_weapon_aim_vector(
float* muzzle_tx,
float* muzzle_ty,
float* muzzle_tz,
8173 float* end_pt_tx = NULL,
float* end_pt_ty = NULL,
float* end_pt_tz = NULL,
8174 float* muzzle_rz = NULL,
float* muzzle_rx = NULL,
float* muzzle_ry = NULL,
8175 int in_character_local_coordinates = 0,
8215 float* offset_x = NULL,
8216 float* offset_y = NULL,
8217 float* offset_z = NULL);
8234 int set_weapon_max_azimuth_error(
float h_error);
8237 float get_weapon_max_azimuth_error();
8244 int set_weapon_max_elevation_error(
float v_error);
8247 float get_weapon_max_elevation_error();
8263 int set_weapon_tracers_enabled(
int enabled);
8266 int get_weapon_tracers_enabled();
8273 int get_weapon_rounds_until_tracer(
diguyMuzzle muzzle);
8294 int trigger_detonation_on_character(
const char* munition_name,
8295 const char* attacker_name = NULL,
8296 float radius_override = -1.0f,
8297 int broadcast_on_network = 1);
8354 int set_face_expression(
const char* facex_name,
float blend_duration,
float strength = 1.0f);
8377 int set_orientation_eyes(
float azimuth,
8379 float blend_time = 0.0f);
8389 int get_orientation_eyes(
float* azimuth,
float* elevation);
8407 int set_eye_droop(
float droop_amount,
float blend_time = 0.0f);
8410 float get_eye_droop();
8437 int blink(
float duration_in = 0.1f,
8438 float duration_out = 0.2f,
8439 float target_in = 1.0f,
8440 float target_out = 0.0f,
8477 int set_automatic_blinks_enabled(
int enabled,
8478 float period = 6.0f,
8479 float period_variation = 3.0f);
8482 int get_automatic_blinks_enabled();
8498 void set_automatic_blink_duration_in(
float duration_in);
8501 float get_automatic_blink_duration_in();
8517 void set_automatic_blink_duration_out(
float duration_out);
8520 float get_automatic_blink_duration_out();
8536 void set_automatic_blink_target_in(
float target_in);
8539 float get_automatic_blink_target_in();
8555 void set_automatic_blink_target_out(
float target_out);
8558 float get_automatic_blink_target_out();
8576 int set_current_facefx_animation_group(
const char* anim_group);
8583 const char* get_current_facefx_animation_group();
8591 const char* get_facefx_actor();
8599 int facefx_mount_animset(
const char* file_name);
8609 int play_facefx_animation(
const char* animation,
8610 float magnitude_scale = 1.0f,
8611 float duration_scale = 1.0f,
8612 float blendin_time = 0.1f,
8613 float blendout_time = 0.1f,
8621 int stop_facefx_animations(
float blend_time = 0.25f,
int stop_sounds = 1);
8633 int get_num_facefx_nodes();
8641 const char* get_facefx_node_name(
int index);
8648 int find_facefx_node_index(
const char* node_name);
8657 int set_facefx_node_value(
int node_index,
8659 float blend_time = 0.25f);
8666 float get_facefx_node_value(
int node_index);
8801 int execute_gesture(
const char* gesture_name,
8848 int execute_1stage_gesture(
const char* gesture_name,
8891 int execute_2stage_gesture(
const char* gesture_name,
8942 int execute_3stage_gesture(
const char* gesture_name,
8991 int execute_table_gesture(
const char* gesture_name,
8993 const char* loop_action = NULL,
8994 const char* begin_action = NULL,
8995 const char* end_action = NULL);
9012 int set_executing_table_gesture_desired_action(
const char* gesture_name,
9013 const char* desired_action);
9037 int end_executing_gesture(
const char* gesture_name);
9069 int abort_executing_gesture(
const char* gesture_name,
9070 float max_rampdown_interval = .5f);
9090 int end_all_gestures();
9120 int abort_all_gestures(
float max_rampdown_interval);
9188 int play_sound(
const char* sound_name,
9189 float sound_gain = 1.0f,
9190 int sound_loops = 0);
9229 int play_3d_sound(
const char* sound_name,
9230 float sound_gain = 1.0f,
9231 int sound_loops = 0);
9307 int stop_all_sounds(
float rampdown_time = 0.0f);
9334 int stop_sound(
const char* sound_name,
float rampdown_time = 0.0f);
9341 int is_playing_sound(
const char* sound_name);
9412 int set_current_voice_actor(
const char* voice_actor);
9415 const char* get_current_voice_actor();
9487 int get_DIS_lifeform_state();
9508 int get_DIS_primary_weapon_position();
9529 int get_DIS_secondary_weapon_position();
9550 int set_network_marking(
const char* network_marking);
9572 const char* get_network_marking();
9596 int set_is_network_published(
int is_network_published);
9618 int get_is_network_published();
9627 DtEntityStateRepository * get_vrlink_entity_state_repository();
9648 int get_is_network_reflected();
9673 int get_is_network_paused();
9681 int set_is_network_paused(
int paused);
9702 int get_network_entity_number();
9764 const char* get_action_from_entity_state(
int damage_state,
9765 int life_form_state,
9766 int primary_weapon_state,
9791 void set_DIS_damage_state(
int state);
9795 int get_DIS_damage_state();
9803 const char * get_damage_state_appearance_name(
int state);
9827 void set_DIS_smoke_state(
int state);
9831 int get_DIS_smoke_state();
9852 void set_DIS_flames_state(
int state);
9856 int get_DIS_flames_state();
9877 void set_DIS_power_plant_state(
int state);
9881 int get_DIS_power_plant_state();
9885 void set_emissivity(
float r,
float g,
float b,
float lerp_time = .25);
9889 void get_emissivity(
float *r,
float *g,
float *b);
9911 void set_DIS_trailing_effect_state(
int state);
9915 int get_DIS_trailing_effect_state();
9918 void set_DIS_station_name(
int name);
9919 int get_DIS_station_name()
const;
9922 void set_DIS_station_number(
int number);
9923 int get_DIS_station_number()
const;
9927 void set_head_lights_state(
int state);
9930 int get_head_lights_state()
const;
9933 void set_tail_lights_state(
int state);
9936 int get_tail_lights_state()
const;
9978 int call_formation(
const char* formation_name,
9979 int snap_to_position_flag = 0,
9980 int break_existing_formations_flag = 1);
9999 int break_formation(
const char* formation_name = NULL);
10040 int automatically_disable_when_acquired = 0);
10068 const char* guide_algorithm,
10069 int automatically_disable_when_acquired = 0);
10090 const char* guide_algorithm,
10091 int automatically_disable_when_acquired = 0);
10125 int remove_guide_with_name(
const char* guide_name);
10152 int remove_all_guides();
10163 int remove_all_disabled_guides();
10213 int add_motion_texture(
const char* motex_name =
"default",
10214 float texture_gain = 1.0f,
10215 int end_previous_motex = 1,
10216 float rampup_interval = 0.2f);
10233 int end_motion_texture(
float rampdown_interval = 0.2f);
10258 int set_initial_motion_texture(
const char* motex_name);
10270 const char* get_initial_motion_texture();
10288 int set_initial_motion_texture_gain(
float motex_gain);
10300 float get_initial_motion_texture_gain();
10390 int set_history_size_t(
float t);
10402 float get_history_size_t();
10418 int set_history_size_increment_t(
float t);
10430 float get_history_size_increment_t();
10669 int match_posture_before_variant = 1,
10674 int return_random_match = 0);
10743 int match_posture_before_variant = 1,
10765 int get_num_variables();
10850 int variable_equal_to_int(
const char* varname,
int value);
10865 int variable_greater_than_int(
const char* varname,
int value);
10880 int variable_less_than_int(
const char* varname,
int value);
10895 int variable_equal_to_float(
const char* varname,
float value);
10910 int variable_greater_than_float(
const char* varname,
float value);
10925 int variable_less_than_float(
const char* varname,
float value);
10940 int variable_equal_to_string(
const char* varname,
const char* value);
10955 int variable_greater_than_string(
const char* varname,
const char* value);
10970 int variable_less_than_string(
const char* varname,
const char* value);
10988 int variable_decrement_value_as_int(
const char* varname,
int value = 1);
11006 int variable_increment_value_as_int(
const char* varname,
int value = 1);
11028 int variable_set_value_as_int(
const char* varname,
11030 int create_if_doesnt_exist = 1);
11037 int set_ivar(
const char* varname,
11039 int create_if_doesnt_exist = 1);
11061 int get_ivar(
const char* varname,
11062 int create_if_doesnt_exist = 1);
11070 int variable_set_value_as_float(
const char* varname,
11072 int create_if_doesnt_exist = 1);
11079 int set_fvar(
const char* varname,
11081 int create_if_doesnt_exist = 1);
11092 float get_fvar(
const char* varname,
11093 int create_if_doesnt_exist = 1);
11101 int variable_set_value_as_string(
const char* varname,
11103 int create_if_doesnt_exist = 1);
11110 int set_svar(
const char* varname,
11112 int create_if_doesnt_exist = 1);
11123 const char* get_svar(
const char* varname,
11124 int create_if_doesnt_exist = 1);
11172 int set_label_text(
const char* label_text);
11184 const char* get_label_text();
11204 int set_label_is_visible(
int is_visible);
11216 int get_label_is_visible();
11239 int set_label_text_color(
float r,
float g,
float b,
float a);
11246 int set_label_text_color_vec4(
const diguyVec4f & color);
11258 int get_label_text_color(
float* r,
float* g,
float* b,
float* a);
11288 int set_label_text_shadow_color(
float r,
float g,
float b,
float a);
11295 int set_label_text_shadow_color_vec4(
const diguyVec4f & color);
11307 int get_label_text_shadow_color(
float* r,
float* g,
float* b,
float* a);
11314 diguyVec4f get_label_text_shadow_color_vec4();
11329 int set_label_text_shadow_is_visible(
int is_visible);
11336 int get_label_text_shadow_is_visible();
11360 int set_label_background_color(
float r,
float g,
float b,
float a);
11367 int set_label_background_color_vec4(
const diguyVec4f & color);
11379 int get_label_background_color(
float* r,
float* g,
float* b,
float* a);
11386 diguyVec4f get_label_background_color_vec4();
11398 void set_label_link_offset_override(
float offset);
11405 float get_label_link_offset_override();
11422 int set_label_shows_character_state(
int show_state);
11430 int get_label_shows_character_state();
11459 int get_last_impact_number();
11466 int get_last_impact_been_processed();
11473 void set_last_impact_been_processed();
11487 void set_max_unprocessed_impacts(
int max_unprocessed_impacts);
11494 int get_max_unprocessed_impacts();
11501 const char* get_last_impact_link();
11508 int get_last_impact_link_is(
const char* link_name);
11516 int get_last_impact_is_from_vehicle();
11524 int get_last_impact_speed_is_greater_than(
float impact_speed);
11532 void set_is_immune_to_impacts(
int immune);
11540 int get_is_immune_to_impacts();
11606 int begin_appearance_effect(
const char* effect,
11607 const char* override_link = NULL,
11640 int end_appearance_effect(
const char* effect,
11641 const char* override_link = NULL);
11669 int stop_appearance_effect(
const char* effect,
11670 const char* override_link = NULL);
11677 int stop_all_appearance_effects();
11694 int appearance_effect_is_active(
const char* effect,
11695 const char* override_link = NULL);
11778 int get_vehicle_body_orientation(
float* rz,
float* rx,
float* ry);
11831 int set_render_mode_shader(
const char* shader_name,
11832 const char* render_mode = NULL);
11853 void reset_render_mode_shader_to_default(
const char* render_mode = NULL);
11871 const char* get_render_mode_shader(
const char* render_mode = NULL);
11921 int set_temporary_current_shader(
const char* shader_name);
11933 void reset_current_shader_to_default();
11942 void trigger_shader_refresh();
11968 void reset_shader_instance_variables_to_initial_values();
11976 void reset_shader_instance_variables_to_program_defaults();
12030 int agent_attack_character(
const char* character_name);
12059 int agent_attack_group(
const char* group_name);
12066 int agent_set_attack_zone_enabled(
int use_attack_zone);
12073 int agent_get_attack_zone_enabled();
12080 int agent_set_attack_zone(
float x,
float y,
float z,
float radius);
12087 int agent_get_attack_zone(
float* x,
float* y,
float* z,
float* radius);
12127 int agent_flee_character(
const char* character_name,
12129 int danger_level = 50);
12160 int agent_flee_group(
const char* group_name,
12162 int danger_level = 50);
12171 int agent_flee_crowd(
const char* crowd_name,
12173 int danger_level = 50);
12205 int agent_flee_location(
float x,
float y,
float z,
12207 int danger_level = 50);
12222 void agent_remove_all_flee_objects();
12263 int agent_mingle_in_region(
const char* region_name =
"(current)",
12264 const char* subregion_name =
"base");
12289 int agent_wander_region(
const char* region_name =
"(current)",
12290 const char* subregion_name =
"base");
12329 int agent_pursue_character(
const char* character_name);
12338 int agent_pursue_character_with_offset(
const char* character_name,
12369 int agent_pursue_group(
const char* group_name);
12381 int agent_call_formation(
const char* formation_name,
12421 int agent_travel_behavior_path(
const char* direction = NULL,
12422 const char* at_end = NULL,
12423 int waypoint_index = -1,
12424 float offset_y = 0.5f);
12432 int agent_travel_path_shape(
const char* path_shape_name,
12433 const char* direction = NULL,
12434 const char* at_end = NULL,
12435 int waypoint_index = -1,
12436 float offset_y = 0.5f);
12457 int agent_travel_region_border(
const char* region_name = NULL,
12458 const char* subregion_name =
"base");
12484 int agent_move_to_point(
float x,
float y,
float z,
12485 const char* via_region = NULL,
12486 const char* subregion_name =
"base");
12508 int agent_move_to_point_bg(
float x,
float y,
float z,
12509 const char* via_region = NULL,
12510 const char* subregion_name =
"base");
12577 int agent_move_to_point_via_subregions(
float x,
float y,
float z,
12578 const char* via_region = NULL,
12580 float cost_bias_for_preferred_regions = 0.25f,
12581 float cost_bias_for_neutral_regions = 1.1f,
12583 float cost_bias_for_repulsed_regions = 10.0f,
12584 int cost_rule = 0);
12604 int agent_move_to_point_via_subregions_bg(
float x,
float y,
float z,
12605 const char* via_region = NULL,
12607 float cost_bias_for_preferred_regions = 0.25f,
12608 float cost_bias_for_neutral_regions = 1.1f,
12610 float cost_bias_for_repulsed_regions = 10.0f,
12611 int cost_rule = 0);
12620 int get_path_planning_result();
12628 int get_is_path_planning();
12650 int agent_move_to_region(
const char* region,
12651 const char* subregion_name =
"base",
12652 const char* via_region = NULL);
12676 int agent_move_to_region_via_subregions(
const char* region_name,
12677 const char* subregion_name =
"base",
12678 const char* via_region = NULL,
12679 float cost_bias_for_preferred_regions = 0.25f,
12681 float cost_bias_for_neutral_regions = 1.1f,
12683 float cost_bias_for_repulsed_regions = 10.0f);
12719 int agent_path_follow(
const char* path_name);
12734 int agent_resume_path_follow();
12768 float agent_get_path_follow_path_t();
12775 int agent_get_path_follow_path_t_paused();
12802 int agent_begin_behavior(
const char* behavior_name);
12809 int agent_stop_behavior();
12837 int agent_set_current_focus_character(
const char* character_name);
12877 int agent_set_current_focus_group(
const char* group_name);
12931 const char* agent_get_current_params_profile_name();
12965 int agent_set_current_params_from_profile(
const char* profile_name,
12966 int retain_focus_objects = 1,
12967 int retain_navigation_values = 1,
12968 int retain_behavior = 0);
12976 int agent_set_initial_params_from_profile(
const char* profile_name);
12984 void agent_set_current_params_from_initial_params();
13005 void agent_set_current_behavior_region_border_is_solid(
int is_solid);
13016 void agent_move_on();
13029 int agent_set_auto_variant_selection(
int selection_enabled);
13036 int agent_get_auto_variant_selection();
13058 void agent_set_use_speed_zones_on_paths(
int enabled);
13065 int agent_get_use_speed_zones_on_paths();
13067 #ifdef CPLUSPLUS_ONLY
13182 int create_lua_mind(
const char* base_class,
const char* init_arg1 = NULL,
13183 const char* init_arg2 = NULL);
13191 const char *get_mind_name();
13206 const char* get_mind_current_state_name();
13218 void do_mind_current_state_changed_callback();
13232 int set_sleep_timer(
float sleep_length);
13240 float get_sleep_timer();
13253 int set_heartbeat_dt(
float heartbeat_dt);
13272 int add_secondary_heartbeat(
const char* function_name,
13273 float heartbeat_dt);
13290 int remove_secondary_heartbeat(
const char* function_name);
13308 int set_secondary_heartbeat_dt(
const char* function_name,
float heartbeat_dt);
13344 int add_wakeup_callback(
int callback);
13361 int remove_wakeup_callback(
int callback);
13373 int remove_all_wakeup_callbacks();
13385 int has_wakeup_callback(
int callback);
13404 int agent_accept_message(
const char* sender,
13405 const char* message_type,
13406 const char* message,
13407 const char* message_params = NULL);
13430 int agent_broadcast_message(
float radius,
13431 const char* message_type,
13432 const char* message,
13433 const char* message_params = NULL);
13458 int agent_broadcast_message_to_group(
const char* group_name,
13460 const char* message_type,
13461 const char* message,
13462 const char* message_params = NULL);
13471 const char* get_lua_object_name();
13478 void set_mind_field_as_string(
const char* field_name,
13479 const char* field_value);
13496 const char* get_mind_field_as_string(
const char* field_name,
13497 int warn_if_no_field = 1);
13505 void set_mind_field_as_float(
const char* field_name,
float field_value);
13517 float get_mind_field_as_float(
const char* field_name,
13518 int warn_if_no_field = 1,
13519 int* found_field = NULL);
13527 void set_mind_field_as_int(
const char* field_name,
int field_value);
13539 int get_mind_field_as_int(
const char* field_name,
13540 int warn_if_no_field = 1,
13541 int* found_field = NULL);
13568 const char* evaluate_mind_function(
const char* function_name,
13569 const char* argument = NULL,
13570 int has_return_string = 0);
13593 const char* get_ai_state_string(
int include_stack = 1,
int include_locals = 1);
13638 int los_check_type = 0);
13662 int check_point_visibility(
float x,
float y,
float z);
13683 #ifdef CPLUSPLUS_ONLY
13804 int get_num_ik_chains();
13808 const char* get_ik_chain_name_at_index(
int index );
13821 int set_ik_target_world(
int ik_chain_target,
float x,
float y,
float z,
float ramp_time = 0.25f );
13834 int set_ik_target_local(
int ik_chain_target,
float x,
float y,
float z,
float ramp_time = 0.25f );
13848 int set_ik_target_character(
int ik_chain_target,
diguyCharacter* target,
const char* link_name,
float ramp_time = 0.25f );
13859 bool is_ik_target_active(
int ik_chain_target )
const;
13864 int disable_ik_target(
int ik_chain_target,
float ramp_time = 0.25f );
13871 void set_distance_to_primary_camera(
float camera_dist );
13874 float get_distance_to_primary_camera();
14077 void set_stop_physics_sim_at_t(
float t);
14086 void set_stop_physics_sim_in_t_seconds(
float relative_t);
14093 float get_stop_physics_sim_at_t();
14111 void apply_impulse_to_physics_sim(
const char* link,
14112 float impulse_magnitude_x,
14113 float impulse_magnitude_y,
14114 float impulse_magnitude_z,
14115 float link_offset_x = 0.0f,
14116 float link_offset_y = 0.0f,
14117 float link_offset_z = 0.0f,
14118 int set_simulation_drives_character = 1);
14144 void apply_impulse_to_physics_sim_from_world_position(
const char* link,
14145 float impulse_magnitude_x,
14146 float impulse_magnitude_y,
14147 float impulse_magnitude_z,
14148 float impulse_generator_position_x,
14149 float impulse_generator_position_y,
14150 float impulse_generator_position_z,
14151 float max_distance = 20.0f,
14152 float impulse_rolloff = 0.0f,
14153 float link_offset_x = 0.0f,
14154 float link_offset_y = 0.0f,
14155 float link_offset_z = 0.0f,
14156 int set_simulation_drives_character = 1);
14187 static int set_max_shader_quality_level(
int quality_level);
14190 static int get_max_shader_quality_level();
14206 int set_animation_events_enabled(
int enable);
14207 int get_animation_events_enabled();
14226 int get_action_num_channels(
const char* action_name);
14248 int set_action_channel_weight(
const char* action_name,
14267 float get_action_channel_weight(
const char* action_name,
14283 float get_time_to_reach_desired_action();
14306 const char* get_type_map_field_using_string(
const char* field);
14310 float get_normalized_age()
const;
14334 int merge_object(
const char*
object);
14347 int is_active_character_in_group_visible(
const char* group_name,
14348 float max_distance_to_check = 100000.0f);
14365 int get_local_space_bounding_box(
float* x1,
float* y1,
float* z1,
14366 float* x2,
float* y2,
float* z2);
14378 void set_mind_always_updates(
int force_update);
14381 int get_mind_always_updates();
14387 float get_angle_to_path(
const char* path_name,
14388 const char* action_bead_name = NULL);
14393 void set_scene_graph_mask(
unsigned int mask);
14396 unsigned int get_scene_graph_mask();
14412 int set_local_to_world_orientation_matrix(
float rz,
float rx,
float ry);
14414 int set_local_to_world_orientation_matrix(
14415 float a0,
float a1,
float a2,
14416 float b0,
float b1,
float b2,
14417 float c0,
float c1,
float c2,
int transpose = 0);
14418 #ifdef CPLUSPLUS_ONLY
14419 const float* get_local_to_world_orientation_matrix();
14423 int set_current_IK_world_conversion_matrix(
14424 float a0,
float a1,
float a2,
14425 float b0,
float b1,
float b2,
14426 float c0,
float c1,
float c2,
14427 int transpose = 0 );
14429 #ifdef CPLUSPLUS_ONLY
14430 const float* get_current_IK_world_conversion_matrix()
const;
14434 void set_IK_use_vrv_swizzle(
bool );
14436 void set_ik_debugging_enabled(
bool enabled );
14439 int set_always_update_regardless_of_dt(
int val );
14442 int get_always_update_regardless_of_dt();
14444 void set_shader_matrices_out_of_date();
14446 void draw_debugging_visuals();
14466 int aim_converge(
int max_iterations = 30 );
14469 void set_aim_algorithm(
int aim_algorithm );
14472 int get_aim_algorithm();
14606 #ifdef CPLUSPLUS_ONLY
14608 bdiScenarioCharacter* get_scripted_object();
14624 bdiScenarioCharacter* m_scripted_object;
14626 friend class bdiPublishedCharacter;
14627 friend class bdiScenarioCharacter;
The diguyViewLabel allows on screen 2D and 3D labels in diguy scenario and the opengl renderer...
Definition: diguyViewLabel.h:52
diguyCharacterTypeMapField
This enumeration allows type map fields to be queried using a numerical value rather than a string na...
Definition: diguy_constants.h:123
A class that represents the unique per-character shader object.
Definition: diguyGraphicsShaderInstance.h:54
diguyGraphicsTextureLoadingBehavior
Definition: diguy_constants.h:432
This class stores a snapshot of a character's motion engine for storing/replicating character positio...
Definition: diguyMotionEngineSnapshot.h:12
#define DIGUY_DEFAULT_FLOAT
This value is a magic number that, when passed to certain functions, means that the function should u...
Definition: diguy_constants.h:62
diguyCallbackReturn diguyCharacterCallback(diguyCharacter *character, int callback_id, void *callback_params, void *callback_user_data)
Definition: diguy_typedefs.h:51
The class that represents what parameters an agent is currently using to carry out their base behavio...
Definition: diguyAgentParams.h:38
wrapper around a chain simulation
Definition: diguyChainSimulation.h:28
diguyHistoryType
DI-Guy history types.
Definition: diguy_constants.h:329
This class represents the patch identifier (country:service:id) for a patch.
Definition: diguyPatchIdentifier.h:26
Represents a scriptable api wrapping a diguy path shape, a curve defined by with a number of waypoint...
Definition: diguyPathShape.h:36
diguyMotionDirection
Definition: diguyMotionDirection.h:26
Definition: diguy_vector_classes.h:154
A class that represents a bullet impact in the world, often used by AIs to make reaction decisions...
Definition: diguyImpact.h:39
A bead that sits on a character's spline path and triggers a new gaze.
Definition: diguyCharacterPathGazeBead.h:34
Definition: diguyMotionPosture.h:40
diguyConnectionPointType
Definition: diguyConnectionPointType.h:26
Definition: diguy_constants.h:214
#define DIGUY_DEFAULT_INT
This value is a magic number that, when passed to certain functions, means that the function should u...
Definition: diguy_constants.h:72
Definition: diguy_constants.h:232
A view is a graphics window wherein the scenario and its characters are animated. Note that views hav...
Definition: diguyView.h:48
diguyMuzzle
This is an enumeration of the different muzzles that can be specified to various DI-Guy function call...
Definition: diguy_constants.h:230
A bead that sits on a character's spline path and triggers a new decision.
Definition: diguyCharacterPathDecisionBead.h:34
An interface for manipulating a character's spline path. A path is typically authored in DI-Guy Scena...
Definition: diguyCharacterPath.h:47
diguyCharacterSimulator
This enumeration lists the ways that data can be generated for DI-Guy characters. ...
Definition: diguy_constants.h:1736
diguyCharacterClass
DI-Guy character classes.
Definition: diguy_constants.h:145
Attached to certain types of more complex vehicles, to manage their behavior.
Definition: diguyVehicleController.h:49
This class encapsulates all parameters for a tasking a character with an action.
Definition: diguyActionParameters.h:12
float diguyAltitudeFunction(diguyCharacter *character, float x, float y, float old_z, int *valid)
Definition: diguy_typedefs.h:57
int diguyCharacterLOSFunction(diguyCharacter *character, diguyCharacter *target_character, int visibility_type)
Definition: diguy_typedefs.h:106
Represents the scenario currently being portrayed.
Definition: diguyScenario.h:99
Contains the diguyMotionVariant enumeration and utility function declarations.
A group of DI-Guy characters, useful for organizing your scenarios.
Definition: diguyCharacterGroup.h:38
The class that represents a DI-Guy Entity in the world.
Definition: diguyCharacter.h:81
Represents a scriptable api wrapping a 3D point on a path.
Definition: diguyWaypoint.h:35
Definition: diguySensorRegion.h:41
int diguyPointLOSFunction(diguyCharacter *character, float x, float y, float z)
Definition: diguy_typedefs.h:111
A class that allows end users to override a character's animation on a joint level. this class complements the diguyPoseOverride system with one that is a bit more scriptable and can handle automatic animation effects.
Definition: diguyLinkController.h:43
int diguyFeelerFunction(diguyCharacter *character, float origin_x, float origin_y, float origin_z, float dir_x, float dir_y, float dir_z, float max_distance_to_test, float *intersection_x, float *intersection_y, float *intersection_z, float *normal_x, float *normal_y, float *normal_z)
Definition: diguy_typedefs.h:64
Contains the diguyMotionPosture enumeration and utility function declarations.
Definition: diguy_constants.h:1569
Definition: diguyMotionVariant.h:62
diguyParameterComparison
This is an enumeration of the different parameter comparison options that can be specified to various...
Definition: diguy_constants.h:212
A class that represents the unique per-character non-shared joint of a character. A diguyCharacter is...
Definition: diguyGraphicsLink.h:45
A class that allows end users to override a character's animation on a joint level.
Definition: diguyCharacterPoseOverride.h:35
diguyCallbackReturn
DI-Guy callbacks return a value of type diguyCallbackReturn, which will be DIGUY_CALLBACK_STOP or DIG...
Definition: diguy_constants.h:94
diguyMotionVariant
Definition: diguyMotionVariant.h:28
diguyCharacterMode
This is an enumeration of the different modes a DI-Guy character can be in.
Definition: diguy_constants.h:197
A class that represents the unique per-character non-shared mesh object. DI-Guy encapsulates its text...
Definition: diguyGraphicsShape.h:49
A class representing a overlaid performance on a character's base animation.
Definition: diguyCharacterGesture.h:42
A bead that sits on a character's spline path and triggers a new script evaluation.
Definition: diguyCharacterPathScriptBead.h:34
Definition: diguySoundInstance.h:27
The diguyVariable class allows you to add per character named parameters. This can be handy for track...
Definition: diguyVariable.h:44
diguyCharacterAppearanceTypes
DI-Guy character appearance query API, this is for diguyCharacter::get_num_appearances_of_type() ...
Definition: diguy_constants.h:169
diguyPhysicsSimulationMode
This enumeration lists the modes that a DI-Guy character physics sim can be in, when the character si...
Definition: diguy_constants.h:1753
diguyPhysicsCollisionGroup
This enumeration lists the collision groups that a DI-Guy physics sim object can be in...
Definition: diguy_constants.h:1769
This class implements shader lod system for use with DI-Guy character graphics.
Definition: diguyGraphicsShaderTechnique.h:153
This class implements shader programs for use with DI-Guy character graphics.
Definition: diguyGraphicsShaderProgram.h:94
The class that represents a DI-Guy Crowd, DI-Guy AI agents can be given orders at an individual level...
Definition: diguyCrowd.h:48
Represents algorithm for steering and maneuvering a character towards a goal point.
Definition: diguyCharacterGuide.h:561
diguyMotionPosture
Definition: diguyMotionPosture.h:28
A bead that sits on a character's spline path and triggers a new aim event.
Definition: diguyCharacterPathAimBead.h:34