forked from enlightenment/efl
EPhysics: small fixes related to slider constraint
SVN revision: 74700
This commit is contained in:
parent
701ed6b8fd
commit
bb43446421
|
@ -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_restitution_set(boundary, 0.65);
|
||||||
ephysics_body_friction_set(boundary, 3);
|
ephysics_body_friction_set(boundary, 3);
|
||||||
|
|
||||||
|
ephysics_body_left_boundary_add(test_data->world);
|
||||||
|
|
||||||
_world_populate(test_data);
|
_world_populate(test_data);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2082,12 +2082,13 @@ EAPI void *ephysics_body_data_get(const EPhysics_Body *body);
|
||||||
* between bodies and the world. Constraints can limit movement angle,
|
* between bodies and the world. Constraints can limit movement angle,
|
||||||
* translation, or work like a motor.
|
* 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().
|
* with @ref ephysics_constraint_del().
|
||||||
* Can be applied between two bodies or between a body and the world.
|
* 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
|
* @brief
|
||||||
|
@ -2204,7 +2205,8 @@ EAPI void ephysics_constraint_slider_angular_limit_get(const EPhysics_Constraint
|
||||||
*
|
*
|
||||||
* @param constraint The constraint to be deleted.
|
* @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
|
* @ingroup EPhysics_Constraint
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue