aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/ephysics/src/lib
Commit message (Collapse)AuthorAgeFilesLines
* ephysics moved into EFLGustavo Sverzut Barbieri2013-01-031-30/+0
| | | | SVN revision: 82127
* efl: merge ephysicsGustavo Sverzut Barbieri2013-01-0311-13521/+0
| | | | | | | | | | changes: * __UNUSED__ -> EINA_UNUSED * Fixed doc hierarchy SVN revision: 82126
* EPhysics: add soft body light implementationLeandro Dorileo2012-12-181-3/+61
| | | | | | | | Do not use the evas map 3d light util function for every slice and avoid the unexpected "mosaic" effect. SVN revision: 81306
* EPhysics: simplify the restacking data free routineLeandro Dorileo2012-12-141-13/+13
| | | | SVN revision: 80986
* EPhysics: soft_circle and soft_ellipsoid renamingLeandro Dorileo2012-12-113-82/+79
| | | | | | | | | For sake of consistency moving soft_circle to soft_cylinder and soft_ellipsoid becomes soft_sphere. Their face identification were moved as well. The faces identifications were also unified. SVN revision: 80720
* EPhysics: fix issues with force applicationLeandro Dorileo2012-12-111-7/+12
| | | | | | | | | This patch fixes the forces apply, the current implementation will never apply it. We're also applying rate twice, get rid of rate on forces_apply function. SVN revision: 80719
* EPhysics: fix issues with rotationLeandro Dorileo2012-12-111-4/+4
| | | | | | | We must convert degrees to radians wherever operating with angles. SVN revision: 80718
* EPhysics: add ephysics_body_sphere_add() APILeandro Dorileo2012-12-113-0/+52
| | | | SVN revision: 80717
* EPhysics: ephysics_body_circle_add() becomes ephysics_body_cylinder_add()Leandro Dorileo2012-12-112-20/+20
| | | | SVN revision: 80716
* ephysics: warn if try to use functions not implementedBruno Dilly2012-12-111-10/+27
| | | | | | | | | by clothes SVN revision: 80713
* ephysics: handle evas object visibitily on default updateBruno Dilly2012-12-101-0/+9
| | | | SVN revision: 80624
* EPHysics: introduce a generic resize_cb for soft body facesLeandro Dorileo2012-12-101-6/+40
| | | | | | | | | | Introduce a generic resize_cb for soft body faces and fix the "not pre-resized evas object issue" for multi faces implementation as well. --This line, and those below, will be ignored-- SVN revision: 80615
* EPhysics: fix issues with resizing clothLeandro Dorileo2012-12-101-28/+43
| | | | | | | --This line, and those below, will be ignored-- SVN revision: 80614
* EPHysics: change the location of _ephysics_body_geometry_setLeandro Dorileo2012-12-101-59/+59
| | | | | | | --This line, and those below, will be ignored-- SVN revision: 80613
* EPhysics: fix issues identified by edje supportLeandro Dorileo2012-12-101-8/+18
| | | | | | | | | | | | | | | | | | | | | Add slices as member of obj smart parent - when it's the case - so we can restack it when the received evas object is member of a smart object. Resize the evas object on ephysics_body_evas_object_set to w=1, h=1 when its initial/original size is 0, this prevents errors on evas_object_image_source_set(). Reset the soft body transform on resize - put it back to its prior position - the one before scaling. On body_move do not consider the moving of anchored rigid body enough, move the soft body vertices as well. --This line, and those below, will be ignored-- SVN revision: 80612
* ephysics: add event WORLD_UPDATEBruno Dilly2012-12-052-0/+4
| | | | SVN revision: 80274
* EPhysics: avoid unused parameter warningsLeandro Dorileo2012-12-051-0/+6
| | | | | | | | | Avoid *unused parameter* warnings on bullet API due to virtual functions. --This line, and those below, will be ignored-- SVN revision: 80251
* EPhysics: soft body drag coefficientLeandro Dorileo2012-12-052-0/+86
| | | | | | | | | Add API for handling with soft body drag coefficient. --This line, and those below, will be ignored-- SVN revision: 80249
* EPhysics: fix soft body velocity and stop implementationLeandro Dorileo2012-12-052-7/+63
| | | | | | | | | | | | | | + velocity Handle cloth cases on velocity functions and consider both rigid and soft body whenever touching velocities + stoping a body. + activation Activate the body when setting angular velocity. --This line, and those below, will be ignored-- SVN revision: 80248
* EPhysics: anchor hardness api and small fixesLeandro Dorileo2012-12-033-5/+101
| | | | | | | | | | This patch introduces a separeted API for handling with anchor hardness, and fixes small problems with pose and soft body impulses. --This line, and those below, will be ignored-- SVN revision: 80107
* EPhysics: fix y orientation issuesLeandro Dorileo2012-12-031-3/+3
| | | | | | | | | | Fix a small issue on y orientation on triangles_inside_get and soft body impulse. --This line, and those below, will be ignored-- SVN revision: 80106
* EPhysics: force body update on light/perspective changesLeandro Dorileo2012-12-033-1/+16
| | | | | | | | | | If light configuration has been changed or perspective changed or simply enabled/disabled force inactive bodies to update. --This line, and those below, will be ignored-- SVN revision: 80105
* EPhysics: fix soft body rotation_setLeandro Dorileo2012-12-031-3/+24
| | | | | | | --This line, and those below, will be ignored-- SVN revision: 80104
* ephysics: fix debug msgs at some functionsBruno Dilly2012-12-031-2/+2
| | | | | | | | Broken in r77467 SVN revision: 80098
* EPhysics: density field in material struct, int -> doubleLeandro Dorileo2012-11-291-1/+1
| | | | | | | --This line, and those below, will be ignored-- SVN revision: 79851
* EPhysics: constraint removalLeandro Dorileo2012-11-294-5/+41
| | | | | | | | | | Delete the constraints a body belongs to on body removal and avoid bullet to segfault. --This line, and those below, will be ignored-- SVN revision: 79850
* EPhysics: generic constraintLeandro Dorileo2012-11-294-203/+309
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch changes how constraints are created and configured, now we use a bullet generic implementation which let us operate on the 6 degrees of freedom(linear and angular ones). We have used 6dof for slider constraint but now we assume 2 types of constraints, single body - simply ephysics_constraint_add(body) - and a linked one - ephysics_constraint_linked_add(body1, body2) used to constrain 2 bodies linked together. Having said that we introduce the following changes: + migrate p2p constraint to 6Dof We want to have a constraint api generic enouth to allow many different constraint behaviour, 6Dof was picked to do that, so p2p needs a migration. + move ephysics_constraint_slider_* functions Since the whole constraint infra-sctructure is being migrated to 6Dof the linear and angular limit functions - previously used only by slider constraint - now looks more generic enough to be used by constraint in general. + add constraint anchor API Instead of telling the anchoring positioning in the constraint creating we have set it's default value to the the middle os the body and if the user wants to change it call ephysics_constraint_anchor_set and reset it. The ephysics_constraint_anchor_set() considers the canvas coordinate instead of using the body orientation. So now one can tell a constraints anchor is set to 100, 10, 0 in the canvas coordinate system and not (body_center.x - 20, body_center.y - 5, body_center.z - 1). + constraint migrate the bt_constraint Since we're working only with 6Dof constraints it is reasonable to change the constraints bt_constraint field to btGeneric6DofConstraint. + add 3 axes to constraints Now constraints API knows about x, y and z axes - linear and angular limiting, anchor setting and the constraint creation functions are fully supported. + constraint calls are renamed The constraint calls were renamed so ephysics_constraint_p2p_add() now is known as ephysics_constraint_linked_add() and ephysics_constraint_slider_add() became ephysics_constraint_add() where the first one is meant for constrain 2 bodies and the second one for single body constraints. --This line, and those below, will be ignored-- SVN revision: 79848
* ephysics: don't try to set bad body geometry when addingBruno Dilly2012-11-281-1/+5
| | | | | | | | | | | | | boundaries If render geometry is not set yet, it will try to set a bad geometry for the boundary boxes. In this case, let these bodies with default size and only resize them when render geometry is set. SVN revision: 79791
* ephysics: add improve dbg msgsBruno Dilly2012-11-282-0/+6
| | | | | | | | To help me debuging it while I'm working on Edje. SVN revision: 79790
* ephysics: don't allow a body to be scaled to 0 in anyBruno Dilly2012-11-281-3/+3
| | | | | | | | | | | axis In this case it will be considered inactive and things won't work as expected. SVN revision: 79789
* ephysics: random doc fixesBruno Dilly2012-11-281-7/+6
| | | | SVN revision: 79781
* EPhysics: soft body operations on triangles listLeandro Dorileo2012-11-232-10/+158
| | | | | | | | | | | | This patch introduces API to get a list of triangles inside an area and another to apply impulse - also - in a list of triangles. Patch by: Leandro Dorileo <dorileo@profusion.mobi> SVN revision: 79607
* EPhysics: fix soft body resizeLeandro Dorileo2012-11-231-1/+9
| | | | | | | | | | | | When resizing a soft body move the anchored rigid body to the center of it. Patch by: Leandro Dorileo <dorileo@profusion.mobi> SVN revision: 79606
* EPhysics: avoid slices double deletionLeandro Dorileo2012-11-231-3/+16
| | | | | | | | | | | | | This patch avoids slices double deletion case ecore evas deletes the slices evas objects before ephysics has actually shutdown and/or simulation thread hasn't been canceled. Patch by: Leandro Dorileo <dorileo@profusion.mobi> SVN revision: 79605
* EPhysics: add api to get the slice index based on itsLeandro Dorileo2012-11-232-17/+66
| | | | | | | | | | | | evas object Patch by: Leandro Dorileo <dorileo@profusion.mobi> SVN revision: 79604
* EPhysics: add soft ellipsoid and multi faceLeandro Dorileo2012-11-233-33/+456
| | | | | | | | | | | | | | implementation This patch introduces the ellipsoid soft body and its multi face implementation. Patch by: Leandro Dorileo <dorileo@profusion.mobi> SVN revision: 79603
* EPhysics: fix random memory leaksLeandro Dorileo2012-11-231-19/+18
| | | | | | | | Patch by: Leandro Dorileo <dorileo@profusion.mobi> SVN revision: 79599
* EPhysics: slice_init doesn't know aboutLeandro Dorileo2012-11-231-6/+7
| | | | | | | | | | | | | | body->evas_object anymore So we can use the same functions to initialize the slices in case of face slicing. Patch by: Leandro Dorileo <dorileo@profusion.mobi> SVN revision: 79598
* EPhysics: soft body slice per faceLeandro Dorileo2012-11-233-47/+164
| | | | | | | | | | | | | This changes how initial points of deformations are mapped, now we must support multiple faces so different points of deformation for each. Patch by: Leandro Dorileo <dorileo@profusion.mobi> SVN revision: 79597
* EPhysics: soft body slicing refactoryLeandro Dorileo2012-11-231-22/+37
| | | | | | | | | | | | Prepare to use the same infra structure of slicing for soft body multi-face deformation implementation. Patch by: Leandro Dorileo <dorileo@profusion.mobi> SVN revision: 79596
* EPhysics: reset soft body's slices layerLeandro Dorileo2012-11-231-3/+38
| | | | | | | | | | | | If a evas object has its layer reset so we must apply the change its slices evas objects. Patch by: Leandro Dorileo <dorileo@profusion.mobi> SVN revision: 79595
* EPhysics: add soft body triangle impulse APILeandro Dorileo2012-11-232-0/+62
| | | | | | | | Patch by: Leandro Dorileo <dorileo@profusion.mobi> SVN revision: 79594
* EPhysics: add soft body bending constraints APILeandro Dorileo2012-11-234-13/+60
| | | | | | | | | | | | 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
* EPhysics: generate bending constraints just onceLeandro Dorileo2012-11-232-4/+13
| | | | | | | | | | | | | Unlikely the cluster generate bullet will not rebuild the bending constraints every call, so we must prevent creating duplicated constraints. Patch by: Leandro Dorileo <dorileo@profusion.mobi> SVN revision: 79591
* EPhysics: move just a single node of a triangleLeandro Dorileo2012-11-232-38/+23
| | | | | | | | Patch by: Leandro Dorileo <dorileo@profusion.mobi> SVN revision: 79590
* ephysics: change quaternion API to avoid many free callsBruno Dilly2012-11-143-73/+89
| | | | | | | | It was really annoying and error prone (easy to leak). SVN revision: 79299
* ephysics: add quaternion group to main doc pageBruno Dilly2012-11-141-0/+1
| | | | | | | | I forgot that. SVN revision: 79297
* ephysics: wrap bullet's quaternionBruno Dilly2012-11-134-71/+683
| | | | | | | | | Useful for 3d rotations. Avoid issues found when using euler angles, like gimbal locks. SVN revision: 79252
* ephysics: fix body rotation set / getBruno Dilly2012-11-131-7/+6
| | | | | | | | | There was a inversion on setter and getter wasn't calculating euler angles correctly. SVN revision: 79250
* ephysics: fix docs regarding torque axis.Bruno Dilly2012-11-131-4/+3
| | | | SVN revision: 79249