diff options
author | Leandro Dorileo <dorileo@profusion.mobi> | 2012-11-23 21:51:38 +0000 |
---|---|---|
committer | Bruno Dilly <bdilly@profusion.mobi> | 2012-11-23 21:51:38 +0000 |
commit | 0e3e700e5278df23ea1aa7914c6a4199951bb0d6 (patch) | |
tree | 14bfe1b903d12037355270730c269a9b0da241b9 /legacy/ephysics/src/lib/EPhysics.h | |
parent | f36db0c84d2bf69e8a40e834000dc0e25c2721ef (diff) |
EPhysics: add soft ellipsoid and multi face
implementation
This patch introduces the ellipsoid soft body and its multi face
implementation.
Patch by: Leandro Dorileo <dorileo@profusion.mobi>
SVN revision: 79603
Diffstat (limited to '')
-rw-r--r-- | legacy/ephysics/src/lib/EPhysics.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/legacy/ephysics/src/lib/EPhysics.h b/legacy/ephysics/src/lib/EPhysics.h index ee3f3ba89b..2f3a0bcaae 100644 --- a/legacy/ephysics/src/lib/EPhysics.h +++ b/legacy/ephysics/src/lib/EPhysics.h | |||
@@ -2388,6 +2388,28 @@ EAPI int ephysics_body_soft_body_triangle_index_get(EPhysics_Body *body, Evas_Co | |||
2388 | 2388 | ||
2389 | /** | 2389 | /** |
2390 | * @brief | 2390 | * @brief |
2391 | * Add a soft ellipsoid. | ||
2392 | * | ||
2393 | * Add a new soft 3d ellipsoid to the simulation. The @p granularity defines how | ||
2394 | * many triangles are to be added. | ||
2395 | * | ||
2396 | * @note if no @p granularity is informed(i.e @p granularity = 0) the soft body | ||
2397 | * will be created with a triangle mesh of 100. | ||
2398 | * | ||
2399 | * @param world The world the new soft ellipsoid is to be added. | ||
2400 | * @param granularity How many triangles the soft body triangle mesh must have. | ||
2401 | * @return a new body or @c NULL on errors. | ||
2402 | * | ||
2403 | * @see ephysics_body_del(). | ||
2404 | * @see ephysics_body_evas_object_set(). | ||
2405 | * @see ephysics_body_face_evas_object_set(). | ||
2406 | * | ||
2407 | * @ingroup EPhysics_Body | ||
2408 | */ | ||
2409 | EAPI EPhysics_Body *ephysics_body_soft_ellipsoid_add(EPhysics_World *world, int granularity); | ||
2410 | |||
2411 | /** | ||
2412 | * @brief | ||
2391 | * Apply an impulse on a given soft body triangle. | 2413 | * Apply an impulse on a given soft body triangle. |
2392 | * | 2414 | * |
2393 | * The impulse is equal to the change of momentum of the body. | 2415 | * The impulse is equal to the change of momentum of the body. |