Расстановка точек на окружности
This commit is contained in:
@@ -13,24 +13,13 @@ enum figure_type
|
||||
struct figure_animation_info {
|
||||
enum figure_type type;
|
||||
struct vec2 position;
|
||||
/* Direction vector; its components are not in pixels. Anim code converts
|
||||
* them to pixel-space and normalizes them so that `speed` is applied as
|
||||
* pixels/sec uniformly in both axes (aspect ratio is accounted for). */
|
||||
struct vec2 velocity;
|
||||
|
||||
float angle;
|
||||
float angular_velocity;
|
||||
|
||||
/* Speed in pixels per second. This value is applied uniformly to both
|
||||
* axes (X and Y); the animation code converts this pixel speed to
|
||||
* normalized increments for position updates taking window aspect ratio
|
||||
* into account. */
|
||||
|
||||
float speed;
|
||||
/* Radius of the figure in pixels (float)
|
||||
* This field is used by animation code to check collisions
|
||||
* with the left/right/top/bottom borders. The animation code
|
||||
* will convert this pixel radius to normalized coordinates for
|
||||
* collision checks against normalized positions. */
|
||||
float radius;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user