summaryrefslogtreecommitdiff
path: root/legacy/ephysics/src/lib/EPhysics.h
diff options
context:
space:
mode:
authorLeandro Dorileo <dorileo@profusion.mobi>2012-12-11 21:10:53 +0000
committerLeandro Dorileo <dorileo@profusion.mobi>2012-12-11 21:10:53 +0000
commitc90d6c58426c40ebbd15e7d409fb61c195eecb31 (patch)
tree198ad6e15dd86c35efe9c867d802557145d0d65c /legacy/ephysics/src/lib/EPhysics.h
parent2903b1f122650f333853ed7fdb0a7b3f1796bd49 (diff)
EPhysics: ephysics_body_circle_add() becomes ephysics_body_cylinder_add()
SVN revision: 80716
Diffstat (limited to '')
-rw-r--r--legacy/ephysics/src/lib/EPhysics.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/legacy/ephysics/src/lib/EPhysics.h b/legacy/ephysics/src/lib/EPhysics.h
index 072f40974b..ec6d79981e 100644
--- a/legacy/ephysics/src/lib/EPhysics.h
+++ b/legacy/ephysics/src/lib/EPhysics.h
@@ -450,7 +450,7 @@ EAPI double ephysics_quaternion_length2_get(const EPhysics_Quaternion *quat);
450 * @{ 450 * @{
451 * 451 *
452 * Shapes are used to create bodies with shapes that differ from primitive 452 * Shapes are used to create bodies with shapes that differ from primitive
453 * ones, like box and circle. 453 * ones, like box and cylinder.
454 * 454 *
455 * A shape consists in a group of points, the vertices of the body to be 455 * A shape consists in a group of points, the vertices of the body to be
456 * created later with @ref ephysics_body_shape_add(). 456 * created later with @ref ephysics_body_shape_add().
@@ -618,7 +618,7 @@ EAPI Eina_Bool ephysics_shape_save(const EPhysics_Shape *shape, const char *file
618 * Body handle, represents an object on EPhysics world. 618 * Body handle, represents an object on EPhysics world.
619 * 619 *
620 * Many types of bodies can be created: 620 * Many types of bodies can be created:
621 * @li @ref ephysics_body_circle_add() 621 * @li @ref ephysics_body_cylinder_add()
622 * @li @ref ephysics_body_box_add() 622 * @li @ref ephysics_body_box_add()
623 * @li @ref ephysics_body_shape_add() 623 * @li @ref ephysics_body_shape_add()
624 * @li @ref ephysics_body_soft_circle_add() 624 * @li @ref ephysics_body_soft_circle_add()
@@ -1291,7 +1291,7 @@ EAPI double ephysics_world_rate_get(const EPhysics_World *world);
1291 * 1291 *
1292 * @note The list should be freed after usage. 1292 * @note The list should be freed after usage.
1293 * 1293 *
1294 * @see ephysics_body_circle_add(). 1294 * @see ephysics_body_cylinder_add().
1295 * @see ephysics_body_box_add(). 1295 * @see ephysics_body_box_add().
1296 * @see ephysics_body_del(). 1296 * @see ephysics_body_del().
1297 * 1297 *
@@ -1952,7 +1952,7 @@ EAPI Eina_Bool ephysics_world_stack_enable_get(const EPhysics_World *world);
1952 * A body is a representation of an object inside a physics world. 1952 * A body is a representation of an object inside a physics world.
1953 * 1953 *
1954 * Bodies can have different shapes that can be created with: 1954 * Bodies can have different shapes that can be created with:
1955 * @li @ref ephysics_body_circle_add(); 1955 * @li @ref ephysics_body_cylinder_add();
1956 * @li @ref ephysics_body_box_add(); 1956 * @li @ref ephysics_body_box_add();
1957 * @li or @ref ephysics_body_shape_add(). 1957 * @li or @ref ephysics_body_shape_add().
1958 * 1958 *
@@ -2670,17 +2670,17 @@ EAPI void ephysics_body_soft_body_bending_constraints_add(EPhysics_Body *body, i
2670 2670
2671/** 2671/**
2672 * @brief 2672 * @brief
2673 * Create a new circle physics body. 2673 * Create a new cylinder physics body.
2674 * 2674 *
2675 * Its collision shape will be a circle of diameter 1. To change it's size 2675 * Its collision shape will be a cylinder of diameter 1. To change it's size
2676 * @ref ephysics_body_geometry_set() should be used. 2676 * @ref ephysics_body_geometry_set() should be used.
2677 * 2677 *
2678 * Any evas object can be associated to it with 2678 * Any evas object can be associated to it with
2679 * @ref ephysics_body_evas_object_set(), 2679 * @ref ephysics_body_evas_object_set(),
2680 * and it will collide as a circle (even if you have an evas rectangle). 2680 * and it will collide as a cylinder (even if you have an evas rectangle).
2681 * 2681 *
2682 * If a circle that could have its shape deformed is required, use 2682 * If a cylinder that could have its shape deformed is required, use
2683 * @ref ephysics_body_soft_box_add(). 2683 * @ref ephysics_body_soft_circle_add().
2684 * 2684 *
2685 * @param world The world this body will belongs to. 2685 * @param world The world this body will belongs to.
2686 * @return a new body or @c NULL, on errors. 2686 * @return a new body or @c NULL, on errors.
@@ -2691,7 +2691,7 @@ EAPI void ephysics_body_soft_body_bending_constraints_add(EPhysics_Body *body, i
2691 * 2691 *
2692 * @ingroup EPhysics_Body 2692 * @ingroup EPhysics_Body
2693 */ 2693 */
2694EAPI EPhysics_Body *ephysics_body_circle_add(EPhysics_World *world); 2694EAPI EPhysics_Body *ephysics_body_cylinder_add(EPhysics_World *world);
2695 2695
2696/** 2696/**
2697 * @brief 2697 * @brief
@@ -2711,7 +2711,7 @@ EAPI EPhysics_Body *ephysics_body_circle_add(EPhysics_World *world);
2711 * @note When working with soft bodies it's importante to adjust the 2711 * @note When working with soft bodies it's importante to adjust the
2712 * simulation's fixed time step due its multi point nature. 2712 * simulation's fixed time step due its multi point nature.
2713 * 2713 *
2714 * For a rigid circle, check @ref ephysics_body_circle_add(). 2714 * For a rigid cylinder, check @ref ephysics_body_cylinder_add().
2715 * 2715 *
2716 * @param world The world this body will belongs to. 2716 * @param world The world this body will belongs to.
2717 * @return a new body or @c NULL, on errors. 2717 * @return a new body or @c NULL, on errors.
@@ -2759,7 +2759,7 @@ EAPI EPhysics_Body *ephysics_body_box_add(EPhysics_World *world);
2759 * @note When working with soft bodies it's importante to adjust the 2759 * @note When working with soft bodies it's importante to adjust the
2760 * simulation's fixed time step due its multi point nature. 2760 * simulation's fixed time step due its multi point nature.
2761 * 2761 *
2762 * For a rigid circle, check @ref ephysics_body_circle_add(). 2762 * For a rigid cylinder, check @ref ephysics_body_cylinder_add().
2763 * 2763 *
2764 * @param world The world this body will belong to. 2764 * @param world The world this body will belong to.
2765 * @return a new body or @c NULL on errors. 2765 * @return a new body or @c NULL on errors.
@@ -3003,7 +3003,7 @@ EAPI EPhysics_Body *ephysics_body_back_boundary_add(EPhysics_World *world);
3003 * @param body The body to be deleted. 3003 * @param body The body to be deleted.
3004 * 3004 *
3005 * @see ephysics_body_box_add(). 3005 * @see ephysics_body_box_add().
3006 * @see ephysics_body_circle_add(). 3006 * @see ephysics_body_cylinder_add().
3007 * 3007 *
3008 * @ingroup EPhysics_Body 3008 * @ingroup EPhysics_Body
3009 */ 3009 */
@@ -3048,7 +3048,7 @@ EAPI EPhysics_World *ephysics_body_world_get(const EPhysics_Body *body);
3048 * 3048 *
3049 * @see ephysics_body_box_add(). 3049 * @see ephysics_body_box_add().
3050 * @see ephysics_body_soft_box_add(). 3050 * @see ephysics_body_soft_box_add().
3051 * @see ephysics_body_circle_add(). 3051 * @see ephysics_body_cylinder_add().
3052 * @see ephysics_body_soft_circle_add(). 3052 * @see ephysics_body_soft_circle_add().
3053 * @see ephysics_body_evas_object_unset(). 3053 * @see ephysics_body_evas_object_unset().
3054 * @see ephysics_world_rate_set(). 3054 * @see ephysics_world_rate_set().
@@ -3147,7 +3147,7 @@ EAPI Evas_Object *ephysics_body_face_evas_object_unset(EPhysics_Body *body, EPhy
3147 * @brief 3147 * @brief
3148 * Set physics body size. 3148 * Set physics body size.
3149 * 3149 *
3150 * By default circles have diameter equal to 1 meter * rate, boxes have 3150 * By default cylinders have diameter equal to 1 meter * rate, boxes have
3151 * dimensions 1 meter * rate on all the axes. 3151 * dimensions 1 meter * rate on all the axes.
3152 * 3152 *
3153 * There are three direct ways of modifying it's size: 3153 * There are three direct ways of modifying it's size:
@@ -3206,7 +3206,7 @@ EAPI void ephysics_body_move(EPhysics_Body *body, Evas_Coord x, Evas_Coord y, Ev
3206 * Set physics body geometry. 3206 * Set physics body geometry.
3207 * 3207 *
3208 * All the physics bodies are created centered on origin (0, 0) and with 3208 * All the physics bodies are created centered on origin (0, 0) and with
3209 * canonical dimensions. Circles have diameter 1, boxes have dimensions 1 3209 * canonical dimensions. Cylinder have diameter 1, boxes have dimensions 1
3210 * on all the axes. 3210 * on all the axes.
3211 * 3211 *
3212 * There are four direct ways of modifying this geometry: 3212 * There are four direct ways of modifying this geometry:
@@ -4246,7 +4246,7 @@ EAPI void ephysics_body_forces_clear(EPhysics_Body *body);
4246 * mass at x component = 20, y component = 10 and z = 10, it will return 4246 * mass at x component = 20, y component = 10 and z = 10, it will return
4247 * @p x = 0.666, @p y = 0.5 and @p z = 0.5. 4247 * @p x = 0.666, @p y = 0.5 and @p z = 0.5.
4248 * 4248 *
4249 * For primitive shapes, like box and circle, the center of mass 4249 * For primitive shapes, like box and cylinder, the center of mass
4250 * is (0.5, 0.5, 0.5). 4250 * is (0.5, 0.5, 0.5).
4251 * 4251 *
4252 * This function can be useful when updating evas objects for bodies 4252 * This function can be useful when updating evas objects for bodies