diff options
author | Leandro Dorileo <dorileo@profusion.mobi> | 2012-11-23 21:43:32 +0000 |
---|---|---|
committer | Bruno Dilly <bdilly@profusion.mobi> | 2012-11-23 21:43:32 +0000 |
commit | 900580095cf40066e6cad1f8f829f6871ed43f73 (patch) | |
tree | 4c272828314851d2b59e42a506e4b23693c63409 /legacy/ephysics/src/lib/EPhysics.h | |
parent | fa05bab34341081ebc65d126fdfa54fc032c7469 (diff) |
EPhysics: add soft body bending constraints API
This patch introduces the API ephysics_body_soft_body_bending_constraints_add
used define how deformeable a soft body is supposed to be.
Patch by: Leandro Dorileo <dorileo@profusion.mobi>
SVN revision: 79592
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 04179df1ad..a9ac03d381 100644 --- a/legacy/ephysics/src/lib/EPhysics.h +++ b/legacy/ephysics/src/lib/EPhysics.h | |||
@@ -2425,6 +2425,28 @@ EAPI void ephysics_body_soft_body_triangle_move(EPhysics_Body *body, int idx, Ev | |||
2425 | 2425 | ||
2426 | /** | 2426 | /** |
2427 | * @brief | 2427 | * @brief |
2428 | * Add new bending constraints to some @p body. | ||
2429 | * | ||
2430 | * Bending constraints define how a soft body is to be deformeable. In fact a | ||
2431 | * bending constraints represents a link between a soft body mesh triangle and | ||
2432 | * other. The hardness property is used to define the bending constraint of | ||
2433 | * those new links. | ||
2434 | * | ||
2435 | * By default EPhysics create a new soft body or cloth with a single bending | ||
2436 | * constraint. | ||
2437 | * | ||
2438 | * @param body The body to add bending constraints to. | ||
2439 | * @param number The number of bending constraints to be added, it must be | ||
2440 | * greater than 0. | ||
2441 | * | ||
2442 | * @see ephysics_body_soft_body_hardness_set(). | ||
2443 | * | ||
2444 | * @ingroup EPhysics_Body | ||
2445 | */ | ||
2446 | EAPI void ephysics_body_soft_body_bending_constraints_add(EPhysics_Body *body, int number); | ||
2447 | |||
2448 | /** | ||
2449 | * @brief | ||
2428 | * Create a new circle physics body. | 2450 | * Create a new circle physics body. |
2429 | * | 2451 | * |
2430 | * Its collision shape will be a circle of diameter 1. To change it's size | 2452 | * Its collision shape will be a circle of diameter 1. To change it's size |