diff options
author | Bruno Dilly <bdilly@profusion.mobi> | 2012-10-10 19:17:44 +0000 |
---|---|---|
committer | Bruno Dilly <bdilly@profusion.mobi> | 2012-10-10 19:17:44 +0000 |
commit | bdd5ba211551a4f93d64e886509ce25836f27161 (patch) | |
tree | 8db04366d921a2fc48eea6eb69029a010ff14b4d /legacy/ephysics/src/lib/EPhysics.h | |
parent | a1897ddf578417e6bca3a193b1839a0355c91b67 (diff) |
ephysics: expose z-axis gravity
SVN revision: 77781
Diffstat (limited to '')
-rw-r--r-- | legacy/ephysics/src/lib/EPhysics.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/legacy/ephysics/src/lib/EPhysics.h b/legacy/ephysics/src/lib/EPhysics.h index 63526c28e9..e99fdf28e1 100644 --- a/legacy/ephysics/src/lib/EPhysics.h +++ b/legacy/ephysics/src/lib/EPhysics.h | |||
@@ -678,11 +678,11 @@ EAPI double ephysics_world_max_sleeping_time_get(const EPhysics_World *world); | |||
678 | 678 | ||
679 | /** | 679 | /** |
680 | * @brief | 680 | * @brief |
681 | * Set world gravity in 2 axes (x, y). | 681 | * Set world gravity in the 3 axes (x, y, z). |
682 | * | 682 | * |
683 | * Gravity will act over bodies with mass over all the time. | 683 | * Gravity will act over bodies with mass over all the time. |
684 | * | 684 | * |
685 | * By default values are 0, 294 Evas Coordinates per second ^ 2 | 685 | * By default values are 0, 294, 0 Evas Coordinates per second ^ 2 |
686 | * (9.8 m/s^2, since we've a default rate of 30 pixels). | 686 | * (9.8 m/s^2, since we've a default rate of 30 pixels). |
687 | * | 687 | * |
688 | * If you change the rate but wants to keep 9.8 m/s^2, you well need | 688 | * If you change the rate but wants to keep 9.8 m/s^2, you well need |
@@ -691,6 +691,7 @@ EAPI double ephysics_world_max_sleeping_time_get(const EPhysics_World *world); | |||
691 | * @param world The world object. | 691 | * @param world The world object. |
692 | * @param gx Gravity on x axis. | 692 | * @param gx Gravity on x axis. |
693 | * @param gy Gravity on y axis. | 693 | * @param gy Gravity on y axis. |
694 | * @param gz Gravity on z axis. | ||
694 | * | 695 | * |
695 | * @note The unit used for acceleration is Evas coordinates per second ^ 2. | 696 | * @note The unit used for acceleration is Evas coordinates per second ^ 2. |
696 | * | 697 | * |
@@ -699,7 +700,7 @@ EAPI double ephysics_world_max_sleeping_time_get(const EPhysics_World *world); | |||
699 | * | 700 | * |
700 | * @ingroup EPhysics_World | 701 | * @ingroup EPhysics_World |
701 | */ | 702 | */ |
702 | EAPI void ephysics_world_gravity_set(EPhysics_World *world, double gx, double gy); | 703 | EAPI void ephysics_world_gravity_set(EPhysics_World *world, double gx, double gy, double gz); |
703 | 704 | ||
704 | /** | 705 | /** |
705 | * @brief | 706 | * @brief |
@@ -794,17 +795,18 @@ EAPI Eina_Bool ephysics_world_constraint_solver_mode_enable_get(const EPhysics_W | |||
794 | 795 | ||
795 | /** | 796 | /** |
796 | * @brief | 797 | * @brief |
797 | * Get world gravity values for axis x and y. | 798 | * Get world gravity values for axis x, y and z. |
798 | * | 799 | * |
799 | * @param world The world object. | 800 | * @param world The world object. |
800 | * @param gx Gravity on x axis. | 801 | * @param gx Gravity on x axis. |
801 | * @param gy Gravity on y axis. | 802 | * @param gy Gravity on y axis. |
803 | * @param gz Gravity on y axis. | ||
802 | * | 804 | * |
803 | * @see ephysics_world_gravity_set(). | 805 | * @see ephysics_world_gravity_set(). |
804 | * | 806 | * |
805 | * @ingroup EPhysics_World | 807 | * @ingroup EPhysics_World |
806 | */ | 808 | */ |
807 | EAPI void ephysics_world_gravity_get(const EPhysics_World *world, double *gx, double *gy); | 809 | EAPI void ephysics_world_gravity_get(const EPhysics_World *world, double *gx, double *gy, double *gz); |
808 | 810 | ||
809 | /** | 811 | /** |
810 | * @brief | 812 | * @brief |