![]() |
DI-Guy SDK Documentation
13.2
|
#include <declspec_diguy.h>Go to the source code of this file.
Macros | |
| #define | CPLUSPLUS_ONLY |
Functions | |
| const char * | diguy_motion_direction_to_string (diguyMotionDirection direction) |
| This function converts the passed direction enumeration into a NULL-terminated C-style string. More... | |
| diguyMotionDirection | diguy_motion_direction_from_string (const char *string) |
| This function converts the passed C-style string into an enumerated value. More... | |
| float | diguy_motion_direction_to_angle (diguyMotionDirection direction) |
| This function converts the passed direction enumeration into a floating point angle. More... | |
| diguyMotionDirection | diguy_motion_direction_from_angle (float angle, float allowed_error=1.0f) |
| This function converts the passed angle into a direction enumeration. More... | |
| #define CPLUSPLUS_ONLY |
| enum diguyMotionDirection |
| const char* diguy_motion_direction_to_string | ( | diguyMotionDirection | direction | ) |
This function converts the passed direction enumeration into a NULL-terminated C-style string.
Returns:
C-style string identifying direction
Callable From:
| diguyMotionDirection diguy_motion_direction_from_string | ( | const char * | string | ) |
This function converts the passed C-style string into an enumerated value.
Directions are used in functions such as diguyCharacter::get_action_from_description().
Returns:
enumeration value of direction
Callable From:
| float diguy_motion_direction_to_angle | ( | diguyMotionDirection | direction | ) |
This function converts the passed direction enumeration into a floating point angle.
The returned angle is in degrees.
Currently only the following directions return useful angles:
All other directions return an angle of 0.
Returns:
yaw angle of direction in degrees
Callable From:
| diguyMotionDirection diguy_motion_direction_from_angle | ( | float | angle, |
| float | allowed_error = 1.0f |
||
| ) |
This function converts the passed angle into a direction enumeration.
Currently only the following directions will be returned:
If the passed angle isn't within the specified error amount of any direction's "exact" angle, the value DIGUY_MOTION_DIRECTION_UNKNOWN will be returned.
| angle | angle for which to retrieve direction, in degrees |
| allowed_error | how much error there can be from the direction's "exact" angle |
Returns:
enumeration value of direction
Callable From: