Commit Graph

105 Commits

Author SHA1 Message Date
Bruno Dilly 8ae0d9af74 ephysics: stack respect body adding order for same z
When bodies have the same z coordinate, the added first will
be below the others.



SVN revision: 78489
2012-10-25 21:55:03 +00:00
Leandro Dorileo 65b9ff36ad EPhysics: make anchors harder
This patch resets the anchors nodes mass proportional to the mesh
size so it becomes harder. For that we also handle the mass resetting
to leave anchors and dragging nodes in their current state.


Patch by: Leandro Dorileo <dorileo@profusion.mobi>



SVN revision: 78488
2012-10-25 21:54:55 +00:00
Leandro Dorileo 6eb262cdbb EPhysics: cloth add receives the number of rows and
columns



Patch by: Leandro Dorileo <dorileo@profusion.mobi>



SVN revision: 78487
2012-10-25 21:54:48 +00:00
Leandro Dorileo b0bd7beac3 EPhysics: soft body position solver iterations
This patch introduces getters and setters API for setting the
soft body position solver iterations.


Patch by: Leandro Dorileo <dorileo@profusion.mobi>



SVN revision: 78486
2012-10-25 21:54:37 +00:00
Bruno Dilly a360657718 ephysics: remove unneeded code from slices init
function




SVN revision: 78485
2012-10-25 21:54:29 +00:00
Bruno Dilly 3772783cc3 ephysics: fix segfault on restack
SVN revision: 78484
2012-10-25 21:54:22 +00:00
Bruno Dilly 8d4e7bdd62 ephysics: fix soft body slicing
Also, fix evas_object_set on cases when it shouldn't use
evas object geometry.



SVN revision: 78483
2012-10-25 21:54:14 +00:00
Leandro Dorileo 5d3d4978ad EPhysics: soft body geometry get fix
Since every shape has its own implementation for local scaling it`s
better to trust just our selves and hold it for further calculations.


Patch by: Leandro Dorileo <dorileo@profusion.mobi>



SVN revision: 78482
2012-10-25 21:54:06 +00:00
Leandro Dorileo 4906b47a59 EPhysics: ephysics_body_move cloth support
Implementation of body moving for cloth bodies.


Patch by: Leandro Dorileo <dorileo@profusion.mobi>



SVN revision: 78481
2012-10-25 21:53:59 +00:00
Leandro Dorileo d3097a3db1 EPhysics: implement central impulse apply for cloth
bodies



Patch by: Leandro Dorileo <dorileo@profusion.mobi>



SVN revision: 78480
2012-10-25 21:53:51 +00:00
Leandro Dorileo 906fff0011 EPhysics: no need to anchor props
Actually for cloth anchors its hardness must always be 0.8.


Patch by: Leandro Dorileo <dorileo@profusion.mobi>



SVN revision: 78479
2012-10-25 21:53:44 +00:00
Bruno Dilly 03c52724db ephysics: apply perspective and back face culling on
soft body




SVN revision: 78478
2012-10-25 21:53:37 +00:00
Bruno Dilly 98d327c3b6 ephysics: invert clothes mesh
So objects won't be back-facing the camera.



SVN revision: 78477
2012-10-25 21:53:30 +00:00
Bruno Dilly 3804a911e1 ephysics: support light on soft bodies
SVN revision: 78476
2012-10-25 21:53:23 +00:00
Bruno Dilly b13d5d054f ephysics: let all slice map stuff only on slice apply
Instead of some settings on slice init and others on apply.
It will be required to apply light and other things.



SVN revision: 78475
2012-10-25 21:53:16 +00:00
Leandro Dorileo 755a182add EPhysics: do not call update deleted object
If a body has been marked for deletion do not updated it neither call
its BODY_UPDATE callbacks.


Patch by: Leandro Dorileo <dorileo@profusion.mobi>



SVN revision: 78474
2012-10-25 21:53:08 +00:00
Bruno Dilly 22cc05a9fe ephysics: support back-face culling
SVN revision: 78265
2012-10-19 18:50:46 +00:00
Bruno Dilly 211d38aac0 ephysics: move perspective stuff to camera component
Looks like it fits better the camera component than world.



SVN revision: 78206
2012-10-18 23:55:45 +00:00
Bruno Dilly 08643f3112 ephysics: add perspective support
SVN revision: 78205
2012-10-18 23:27:26 +00:00
Bruno Dilly 64bc76ba49 ephysics: expose volume getter
useful to calculate density given a mass



SVN revision: 78201
2012-10-18 21:23:05 +00:00
Leandro Dorileo 02903536b3 EPhysics: avoid restacking objects on different layers
If the two objects are not in the same layer avoid restacking it.


Patch by: Leandro Dorileo <dorileo@profusion.mobi>



SVN revision: 78193
2012-10-18 19:18:00 +00:00
Bruno Dilly bb1ef80447 ephysics: don't change body properties if custom
material is set

It shouldn't imply in specific properties



SVN revision: 78134
2012-10-17 21:37:10 +00:00
Bruno Dilly e25a9d45e8 ephysics: don't try to unset dragging if it's not set
Otherwise weird behaviors could happens
<evil laughs>



SVN revision: 78095
2012-10-16 23:18:48 +00:00
Leandro Dorileo a376a5ceeb EPhysics: random fixes
This patch fixes:
+ the scale_get function(the soft body shape scale was not been set),
+ the soft body evas object deletion callback, it wasn't properly freeing
the slices evas objects;
+ puts the soft body base evas object back to canvas;


Patch by: Leandro Dorileo <dorileo@profusion.mobi>



SVN revision: 78093
2012-10-16 23:18:35 +00:00
Leandro Dorileo 56bdc31570 EPhysics: soft body dragging support
This patch introduces an API to freeze(dragging_set) an specific
soft body trimesh face untill it gets called to unfreeze(dragging_unset) it.


Patch by: Leandro Dorileo <dorileo@profusion.mobi>



SVN revision: 78091
2012-10-16 23:18:21 +00:00
Leandro Dorileo f4fa980cce EPhysics: get rid of soft body smart object
Since we want to restack all the bodies evas objects against each other,
being it a soft body or not, we can't have the soft body slices member
of something else.


Patch by: Leandro Dorileo <dorileo@profusion.mobi>



SVN revision: 78090
2012-10-16 23:12:59 +00:00
Leandro Dorileo 4f73c6d46e EPhysics: triangle API
This patch introduces soft body's mesh triangle manipulation, for picking
the triangle of a body in X and Y and moving it as well.


Patch by: Leandro Dorileo <dorileo@profusion.mobi>



SVN revision: 78088
2012-10-16 23:12:47 +00:00
Bruno Dilly bb90530f7b ephysics: add autodel functions for front and back of
the scene




SVN revision: 78016
2012-10-15 21:54:35 +00:00
Bruno Dilly c2b0c76b74 ephysics: add front and back boundaries
Use it on test "Bouncing 3D"



SVN revision: 78015
2012-10-15 21:54:29 +00:00
Bruno Dilly 9447db42d8 ephysics: fix boundaries position
SVN revision: 78014
2012-10-15 21:54:22 +00:00
Bruno Dilly f6e0e9a3f5 ephysics: revert add depth parameter to boundary api
reverts r77785, since it will be properly handled before adding
front and back boundaries



SVN revision: 78013
2012-10-15 21:54:14 +00:00
Bruno Dilly 66b8ca8afc ephysics: implement rotation quartenion getter
So it's possible to create a custom body update callback using
it with evas_map_util_quat_rotate().



SVN revision: 78010
2012-10-15 21:53:56 +00:00
Bruno Dilly 05dab66b0b ephysics: render 3d rotation
SVN revision: 78009
2012-10-15 21:53:51 +00:00
Bruno Dilly c970090254 ephysics: lights, camera, action!
Add light support.

It uses evas_map_util_3d_lighting() internally and is only applied
over selected bodies.



SVN revision: 77803
2012-10-10 20:32:08 +00:00
Leandro Dorileo 17fa1d7756 EPhysics: add depth parameter to boundary api
Patch by: Leandro Dorileo <dorileo@profusion.mobi>



SVN revision: 77785
2012-10-10 19:18:15 +00:00
Bruno Dilly 21e6264deb ephysics: fix z position on geometry set using cm
SVN revision: 77784
2012-10-10 19:18:02 +00:00
Bruno Dilly f75457d4b9 ephysics: add new 3d shapes
Instead of creating it from 2d shapes.
Bad news is that for some cases basically points will need to
be kind of duplicated.



SVN revision: 77783
2012-10-10 19:17:54 +00:00
Bruno Dilly 59cc6c6f2f ephysics: support forces (and torques) on 3 axes
SVN revision: 77782
2012-10-10 19:17:49 +00:00
Bruno Dilly bdd5ba2115 ephysics: expose z-axis gravity
SVN revision: 77781
2012-10-10 19:17:44 +00:00
Bruno Dilly a1897ddf57 ephysics: impulses support the 3 planes
SVN revision: 77780
2012-10-10 19:17:36 +00:00
Bruno Dilly 71583d30e3 ephysics: support angular and linear velocity on 3
axes




SVN revision: 77779
2012-10-10 19:17:29 +00:00
Bruno Dilly f7c2009910 ephysics: collision detection inform z coordinate
SVN revision: 77778
2012-10-10 19:17:13 +00:00
Bruno Dilly 8b9c28f003 ephysics: support 3 axes on body geometry related
functions

geometry set / get, move, resize



SVN revision: 77777
2012-10-10 19:17:01 +00:00
Bruno Dilly 32f03f55a4 ephysics: body rotation getter / setter changed to
support 3 axes




SVN revision: 77776
2012-10-10 19:16:55 +00:00
Bruno Dilly 290a7d8821 ephysics: allow to enable angular movement on all the
planes




SVN revision: 77775
2012-10-10 19:16:48 +00:00
Bruno Dilly 4ef1a74d4c ephysics: support enabling moves on z axis
SVN revision: 77774
2012-10-10 19:16:43 +00:00
Leandro Dorileo 179efa1d66 EPhysics: soft body members stacking
Using evas stacking for soft body slices members.


Patch by: Leandro Dorileo <dorileo@profusion.mobi>



SVN revision: 77677
2012-10-09 20:00:03 +00:00
Leandro Dorileo 6f9e9a67f7 EPhysics: body evas object unset return the base
object

In the unset operation return the base object, not the smart one.


Patch by: Leandro Dorileo <dorileo@profusion.mobi>



SVN revision: 77676
2012-10-09 19:59:53 +00:00
Bruno Dilly 3db5bdd771 ephysics: re-activate body when velocity is set
SVN revision: 77584
2012-10-08 18:00:55 +00:00
Leandro Dorileo 252643a33b EPhysics: add cloth support
This patch introduces the cloth support. Auxiliary API's for setting
full anchors, cloth nodes anchors and so on is also introduced. Few
other issues concerning soft body and cloth transform, has been worked
to fit the cloth support needs.


Patch by: Leandro Dorileo <dorileo@profusion.mobi>



SVN revision: 77467
2012-10-04 22:40:16 +00:00