EPhysics: small fixes related to slider constraint
authorBruno Dilly <bdilly@profusion.mobi>
Tue, 31 Jul 2012 22:24:51 +0000 (22:24 +0000)
committerBruno Dilly <bdilly@profusion.mobi>
Tue, 31 Jul 2012 22:24:51 +0000 (22:24 +0000)
SVN revision: 74700

legacy/ephysics/src/bin/test_slider.c
legacy/ephysics/src/lib/EPhysics.h

index 56aae11..e1a5cde 100644 (file)
@@ -163,5 +163,7 @@ test_slider(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
    ephysics_body_restitution_set(boundary, 0.65);
    ephysics_body_friction_set(boundary, 3);
 
+   ephysics_body_left_boundary_add(test_data->world);
+
    _world_populate(test_data);
 }
index 49d3d20..a426830 100644 (file)
@@ -2082,12 +2082,13 @@ EAPI void *ephysics_body_data_get(const EPhysics_Body *body);
  * between bodies and the world. Constraints can limit movement angle,
  * translation, or work like a motor.
  *
- * Constraints can be created with @ref ephysics_constraint_add() and removed
+ * Constraints can be created with @ref ephysics_constraint_p2p_add()
+ * or @ref ephysics_constraint_slider_add() and removed
  * with @ref ephysics_constraint_del().
  * Can be applied between two bodies or between a body and the world.
  */
 
-typedef struct _EPhysics_Constraint EPhysics_Constraint; /**< Constraint handle, used to limit bodies movements. Created with @ref ephysics_constraint_add() and deleted with @ref ephysics_constraint_del(). */
+typedef struct _EPhysics_Constraint EPhysics_Constraint; /**< Constraint handle, used to limit bodies movements. Created with @ref ephysics_constraint_p2p_add() or @ref ephysics_constraint_slider_add() and deleted with @ref ephysics_constraint_del(). */
 
 /**
  * @brief
@@ -2204,7 +2205,8 @@ EAPI void ephysics_constraint_slider_angular_limit_get(const EPhysics_Constraint
  *
  * @param constraint The constraint to be deleted.
  *
- * @see ephysics_constraint_add() for more details.
+ * @see ephysics_constraint_p2p_add() for more details.
+ * @see ephysics_constraint_slider_add() for more details.
  *
  * @ingroup EPhysics_Constraint
  */