diff options
author | Leandro Dorileo <dorileo@profusion.mobi> | 2012-10-25 21:54:48 +0000 |
---|---|---|
committer | Bruno Dilly <bdilly@profusion.mobi> | 2012-10-25 21:54:48 +0000 |
commit | 6eb262cdbb1b1a5b86c818074e1b9d23133ed378 (patch) | |
tree | 5c9a2af5e3d5660c2ba900deb0a99fb9b835a062 /legacy/ephysics/src/lib/EPhysics.h | |
parent | b0bd7beac3d86cd53e1f16ffedf2c49ed45f207a (diff) |
EPhysics: cloth add receives the number of rows and
columns
Patch by: Leandro Dorileo <dorileo@profusion.mobi>
SVN revision: 78487
Diffstat (limited to '')
-rw-r--r-- | legacy/ephysics/src/lib/EPhysics.h | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/legacy/ephysics/src/lib/EPhysics.h b/legacy/ephysics/src/lib/EPhysics.h index 5a7b2db9fe..bfb354c063 100644 --- a/legacy/ephysics/src/lib/EPhysics.h +++ b/legacy/ephysics/src/lib/EPhysics.h | |||
@@ -2070,25 +2070,21 @@ EAPI EPhysics_Body *ephysics_body_soft_box_add(EPhysics_World *world); | |||
2070 | * Create a new deformable cloth physics body. | 2070 | * Create a new deformable cloth physics body. |
2071 | * | 2071 | * |
2072 | * A cloth has its points of deformation conceptually split into rows and | 2072 | * A cloth has its points of deformation conceptually split into rows and |
2073 | * columns | 2073 | * columns where every square is also split into two triangles - afore named |
2074 | * where every square is also split into two triangles - afore named nodes. To | 2074 | * nodes. To fine tune the deformation one can increase this granularity by |
2075 | * fine tune the deformation one can increase this granularity by increasing the | 2075 | * increasing the number of @p rows and @p columns. |
2076 | * @p granularity parameter. | ||
2077 | * | 2076 | * |
2078 | * The number of rows is always proportional to the number of columns, for | 2077 | * By default - if passed 0 as @p rows and @p columns - EPhysics creates a cloth |
2079 | * example passing @p granularity of 20 will create a cloth with 20 rows and 20 | 2078 | * with 15 rows and 15 columns, these default values will generally fit the most |
2080 | * columns. | 2079 | * common scenarios. |
2081 | * | 2080 | * |
2082 | * By default EPhysics creates a cloth with 15 rows and 15 columns, these | 2081 | * If the informed @p rows is of 0 then the default value - of 15 - is |
2083 | * default values will generally fit the most common scenarios. | 2082 | * assumed. The same is true for @p columns. |
2084 | * | ||
2085 | * If the informed @p granularity is of 0 then the default value - of 15 - is | ||
2086 | * assumed. | ||
2087 | * | 2083 | * |
2088 | * @param world The world this body will belong to. | 2084 | * @param world The world this body will belong to. |
2089 | * @param granularity Define - proportionally - the number of rows and columns, | 2085 | * @param rows The number os rows. |
2090 | * if 0 the default value - of 15 - is assumed. | 2086 | * @param columns The number of columns. |
2091 | * @return a bew body or @c NULL on erros. | 2087 | * @return a new body or @c NULL on erros. |
2092 | * | 2088 | * |
2093 | * @see ephysics_body_del(). | 2089 | * @see ephysics_body_del(). |
2094 | * @see ephysics_body_evas_object_set(). | 2090 | * @see ephysics_body_evas_object_set(). |
@@ -2098,7 +2094,7 @@ EAPI EPhysics_Body *ephysics_body_soft_box_add(EPhysics_World *world); | |||
2098 | * | 2094 | * |
2099 | * @ingroup EPhysics_Body | 2095 | * @ingroup EPhysics_Body |
2100 | */ | 2096 | */ |
2101 | EAPI EPhysics_Body *ephysics_body_cloth_add(EPhysics_World *world, unsigned short granularity); | 2097 | EAPI EPhysics_Body *ephysics_body_cloth_add(EPhysics_World *world, unsigned short rows, unsigned short columns); |
2102 | 2098 | ||
2103 | /** | 2099 | /** |
2104 | * @brief | 2100 | * @brief |