Leandro Dorileo
889ba8d307
EPhysics: fix soft body resize
...
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
2012-11-23 21:52:02 +00:00
Leandro Dorileo
f4ce94ee18
EPhysics: avoid slices double deletion
...
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
2012-11-23 21:51:53 +00:00
Leandro Dorileo
ecd61b29af
EPhysics: add api to get the slice index based on its
...
evas object
Patch by: Leandro Dorileo <dorileo@profusion.mobi>
SVN revision: 79604
2012-11-23 21:51:44 +00:00
Leandro Dorileo
0e3e700e52
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
2012-11-23 21:51:38 +00:00
Leandro Dorileo
f36db0c84d
EPhysics: change double named group
...
Changed the double named group in list.edc to alias and fix the
abortion issue on tests.
Patch by: Leandro Dorileo <dorileo@profusion.mobi>
SVN revision: 79602
2012-11-23 21:51:32 +00:00
Leandro Dorileo
1a82b27622
EPhysics: flag test fixes
...
Add one more bending constraint and sets gravity to ephysics default
value.
Patch by: Leandro Dorileo <dorileo@profusion.mobi>
SVN revision: 79601
2012-11-23 21:51:24 +00:00
Leandro Dorileo
a231ae47dc
EPhysics: test flag fix Evas_Mouse_Event_* usage
...
Now using the proper event attributes.
Patch by: Leandro Dorileo <dorileo@profusion.mobi>
SVN revision: 79600
2012-11-23 21:51:18 +00:00
Leandro Dorileo
3e10c1bdb6
EPhysics: fix random memory leaks
...
Patch by: Leandro Dorileo <dorileo@profusion.mobi>
SVN revision: 79599
2012-11-23 21:51:03 +00:00
Leandro Dorileo
0951154f9c
EPhysics: slice_init doesn't know about
...
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
2012-11-23 21:50:02 +00:00
Leandro Dorileo
6f743c6978
EPhysics: soft body slice per face
...
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
2012-11-23 21:49:57 +00:00
Leandro Dorileo
f962999612
EPhysics: soft body slicing refactory
...
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
2012-11-23 21:49:51 +00:00
Leandro Dorileo
96388823a7
EPhysics: reset soft body's slices layer
...
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
2012-11-23 21:49:44 +00:00
Leandro Dorileo
cf2d140f8c
EPhysics: add soft body triangle impulse API
...
Patch by: Leandro Dorileo <dorileo@profusion.mobi>
SVN revision: 79594
2012-11-23 21:43:49 +00:00
Leandro Dorileo
5d49f5912a
EPhysics: flip page test
...
This patch adds a test to simulate page flipping.
Patch by: Leandro Dorileo <dorileo@profusion.mobi>
SVN revision: 79593
2012-11-23 21:43:44 +00:00
Leandro Dorileo
900580095c
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
2012-11-23 21:43:32 +00:00
Leandro Dorileo
fa05bab343
EPhysics: generate bending constraints just once
...
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
2012-11-23 21:43:25 +00:00
Leandro Dorileo
a7e90dc5a7
EPhysics: move just a single node of a triangle
...
Patch by: Leandro Dorileo <dorileo@profusion.mobi>
SVN revision: 79590
2012-11-23 21:43:19 +00:00
Bruno Dilly
52e0d54174
ephysics: change quaternion API to avoid many free calls
...
It was really annoying and error prone (easy to leak).
SVN revision: 79299
2012-11-14 20:01:20 +00:00
Bruno Dilly
8a7f663168
ephysics: new images set for cube 3d test
...
by Marina Proni
SVN revision: 79298
2012-11-14 20:01:12 +00:00
Bruno Dilly
621a670813
ephysics: add quaternion group to main doc page
...
I forgot that.
SVN revision: 79297
2012-11-14 20:01:01 +00:00
Bruno Dilly
eab0f81290
ephysics: wrap bullet's quaternion
...
Useful for 3d rotations.
Avoid issues found when using euler angles, like gimbal locks.
SVN revision: 79252
2012-11-13 22:18:16 +00:00
Bruno Dilly
cbf0049a64
ephysics: add cube 3d test
...
spot issues on rotation based on euler angles
SVN revision: 79251
2012-11-13 22:18:09 +00:00
Bruno Dilly
c1e3f6a574
ephysics: fix body rotation set / get
...
There was a inversion on setter and getter wasn't calculating
euler angles correctly.
SVN revision: 79250
2012-11-13 22:18:03 +00:00
Bruno Dilly
3803a8d502
ephysics: fix docs regarding torque axis.
...
SVN revision: 79249
2012-11-13 22:17:54 +00:00
Leandro Dorileo
31069a97ce
EPhysics: sandbox reduce time resolution
...
Reduce simulation time resolution to avoid soft body penetration.
Patch by: Leandro Dorileo <dorileo@profusion.mobi>
SVN revision: 79058
2012-11-09 18:58:57 +00:00
Leandro Dorileo
d0f93b0aaa
EPhysics: do not wait to disassociate a boundary
...
If a user has asked for a boundary deletion do not wait until body_del
callback to clean it up to avoid returning a body marked for deletion
case the user decided to add it again.
Patch by: Leandro Dorileo <dorileo@profusion.mobi>
SVN revision: 79057
2012-11-09 18:58:51 +00:00
Leandro Dorileo
be9c5adb45
EPhysics: fix soft body geometry set
...
Issue found on ephysics_sandbox. The scale was been applied considering
the rigid body behaviour. This patch applies a reverse scale then scale
again.
Patch by: Leandro Dorileo <dorileo@profusion.mobi>
SVN revision: 79056
2012-11-09 18:58:43 +00:00
Leandro Dorileo
8fa96610bb
EPhysics: get rid of soft_data
...
Patch by: Leandro Dorileo <dorileo@profusion.mobi>
SVN revision: 79055
2012-11-09 18:58:38 +00:00
Bruno Dilly
620a0a1ac7
ephysics: toggle theme
...
SVN revision: 79054
2012-11-09 18:58:32 +00:00
Bruno Dilly
b25a7d2816
ephysics: small fixes on grab test
...
Remove unneeded field of drag structure and vars, rename vars,
add checks, fix indenting.
SVN revision: 79053
2012-11-09 18:58:23 +00:00
Bruno Dilly
6b66a1854a
ephysics: todo--
...
SVN revision: 79052
2012-11-09 18:58:18 +00:00
Bruno Dilly
554a41089e
ephysics: add toggle on tests with light
...
So users can see impacts caused by using light.
SVN revision: 79051
2012-11-09 18:58:12 +00:00
Bruno Dilly
ac4f92f547
ephysics: add coins test requested by Raster
...
Just giving his 2 cents.
credits:
joke: acidx
images: marina
SVN revision: 79050
2012-11-09 18:57:58 +00:00
Bruno Dilly
53b29208ee
ephysics: implement update of cylinder faces
...
SVN revision: 79049
2012-11-09 18:57:51 +00:00
Bruno Dilly
77f193677b
ephysics: fix evas object rotation based on body
...
Inverts y component.
SVN revision: 79048
2012-11-09 18:53:38 +00:00
Bruno Dilly
06bf7b0761
ephysics: add dices test
...
SVN revision: 79047
2012-11-09 18:53:26 +00:00
Bruno Dilly
8a70256010
ephysics: use macros on cubes and balls theme
...
SVN revision: 79046
2012-11-09 18:53:17 +00:00
Bruno Dilly
d2ed5cbb47
ephysics: implement update of box faces objects
...
SVN revision: 79045
2012-11-09 18:53:11 +00:00
Bruno Dilly
02d3fdb54b
ephysics: use integer on body struct to store shape
...
Instead of comparing strings to return of bullet collision shapes
SVN revision: 79044
2012-11-09 18:53:04 +00:00
Bruno Dilly
3d9cf4bd2b
ephysics: fix outdates docs regarding light
...
SVN revision: 79043
2012-11-09 18:52:55 +00:00
Bruno Dilly
530c8b4310
ephysics: use a common API to add faces for all types
...
of body
SVN revision: 79042
2012-11-09 18:52:49 +00:00
Bruno Dilly
61d7e5e30e
ephysics: support multiple evas objects associated to
...
body
SVN revision: 79041
2012-11-09 18:52:42 +00:00
Bruno Dilly
7af37b3980
ephysics: don't mess with body's depth when setting
...
evas object
SVN revision: 79040
2012-11-09 18:52:35 +00:00
Bruno Dilly
de06c6bc18
ephysics: fix body geometry initialization
...
Getting geometry from a recently created body was retuning zeros.
SVN revision: 79039
2012-11-09 18:52:28 +00:00
Bruno Dilly
560c3e6fa8
ephysics: improve body struct readability a bit
...
Actually ephysics body deserves a redesign, since it differs
a lot between types. It wasn't previewed.
SVN revision: 79038
2012-11-09 18:52:22 +00:00
Bruno Dilly
5d465e1c04
ephysics: check for side value on anchors full add
...
function
SVN revision: 79037
2012-11-09 18:52:16 +00:00
Bruno Dilly
884558f342
ephysics: cosmetic fix
...
SVN revision: 78732
2012-10-31 21:03:36 +00:00
Bruno Dilly
7aff5fb13e
ephysics: clean up flag test
...
SVN revision: 78731
2012-10-31 21:03:23 +00:00
Bruno Dilly
818e957c89
ephysics: fix triangles index get
...
It will works only with cloths for now.
SVN revision: 78730
2012-10-31 21:03:17 +00:00
Bruno Dilly
cd4a6f05d7
ephysics: fix cols / rows account
...
It was creating meshes with cols - 1, rows - 1.
SVN revision: 78729
2012-10-31 21:03:09 +00:00
Bruno Dilly
5e0998835e
ephysics: fix slices size
...
with 1,1 events conversion won't works fine
SVN revision: 78728
2012-10-31 21:03:02 +00:00
Bruno Dilly
35b77df141
ephysics: update slices at each tick
...
No reason to call it only when evas object moves.
Makes soft bodies animations smoother.
SVN revision: 78727
2012-10-31 21:02:55 +00:00
Bruno Dilly
9f04fdf723
ephysics: use evas_object_image_source API
...
Remove workaround on soft body slicing
SVN revision: 78726
2012-10-31 21:02:50 +00:00
Bruno Dilly
67f36ff048
ephysics: avoid many unecessary allocs / free on
...
collision detection
Only allocates data when it has a callback registered.
SVN revision: 78725
2012-10-31 21:02:43 +00:00
Bruno Dilly
0ca47806af
ephysics: add scroller bar on test custom theme
...
So people using standard profile can use it without mouse wheel.
SVN revision: 78683
2012-10-30 18:32:03 +00:00
Leandro Dorileo
d0126e755b
EPhysics: the z axis is inverted
...
The z axis is inverted so the greater the lower it is, the smaller
the above it is.
Patch by: Leandro Dorileo <dorileo@profusion.mobi>
SVN revision: 78682
2012-10-30 18:31:58 +00:00
Leandro Dorileo
c6f4ab7643
EPhysics: restacking per layer
...
This patch fixes issues with restacking bodies in different evas
layers.
Patch by: Leandro Dorileo <dorileo@profusion.mobi>
SVN revision: 78681
2012-10-30 18:31:52 +00:00
Leandro Dorileo
36fbbb75d7
EPhysics: disable evas map on
...
ephysics_body_evas_object_set/unset
When unsetting or chaging the body's associated evas object we must
disable the evas map so the user can handle it afterwards.
Patch by: Leandro Dorileo <dorileo@profusion.mobi>
SVN revision: 78680
2012-10-30 18:31:45 +00:00
Leandro Dorileo
5bf3f3cf7d
EPhysics: soft body rotation set
...
Fix implementation for ephysics_body_rotation_set for soft bodies.
Patch by: Leandro Dorileo <dorileo@profusion.mobi>
SVN revision: 78679
2012-10-30 18:31:38 +00:00
Bruno Dilly
54a8f1678d
ephysics: break up light functions
...
Long list of same typed parameters is very error prone.
Not the scene will have a initial light configuration, that can
be enabled and modified.
SVN revision: 78678
2012-10-30 18:31:32 +00:00
Leandro Dorileo
f9b904ae03
EPhysics: test delete body, fix bodies list mess.
...
Patch by: Leandro Dorileo <dorileo@profusion.mobi>
SVN revision: 78677
2012-10-30 18:31:21 +00:00
Leandro Dorileo
c636562644
EPhysics: flag - cloth test, remove unneeded
...
boundaries
Patch by: Leandro Dorileo <dorileo@profusion.mobi>
SVN revision: 78493
2012-10-25 21:55:48 +00:00
Bruno Dilly
54775f34b5
ephysics: fix test "rotating forever"
...
It should delete timers when evas object is deleted, not when
body is deleted.
SVN revision: 78492
2012-10-25 21:55:35 +00:00
Bruno Dilly
829065f97a
ephysics: support disabling stacking based on Z axis
...
Since now we support movement on Z axis the evas objects
associated to bodies need to be re-stacked to be below / above
each other.
But if Z axis movement is disabled, no cloth is used, ...,
it can be safely disabled, since evas objects won't overlap.
And it will save performance.
SVN revision: 78491
2012-10-25 21:55:23 +00:00
Bruno Dilly
651b562ebd
ephysics: docs fixes (missing params / typos)
...
SVN revision: 78490
2012-10-25 21:55:14 +00:00
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
Stefan Schmidt
cedf5d0cf9
Doxyfile.in: Remove obsolte doxygen tags from all our Doxyfile.in files.
...
Doygen tells us:
warning: Tag `SHOW_DIRECTORIES' at line 507 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag `HTML_ALIGN_MEMBERS' at line 879 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag `USE_INLINE_TREES' at line 1065 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
So we are nice and remove them. A yay for the day where we have amerged tree and
not two dozens of Doxyfile.in files floating around.
SVN revision: 78409
2012-10-24 19:50:29 +00:00
Bruno Dilly
22cc05a9fe
ephysics: support back-face culling
...
SVN revision: 78265
2012-10-19 18:50:46 +00:00
Ricardo de Almeida Gonzaga
e46c4e83d5
ephysics: fine tunning on sandbox layout
...
Patch by: Ricardo de Almeida Gonzaga <ricardo@profusion.mobi>
SVN revision: 78264
2012-10-19 18:50:38 +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
30a0f7c659
ephysics: change bouncing 3d example
...
Make it easier to test 3d rotations
SVN revision: 78204
2012-10-18 23:27:19 +00:00
Bruno Dilly
90e21f1637
ephysics: don't set density 0 when setting mass on
...
sandbox
SVN revision: 78203
2012-10-18 21:23:21 +00:00
Bruno Dilly
2db55269f6
ephysics: set velocity before applying impulse on
...
sandbox
Otherwise the velocity implied by impulse will be zeroed.
SVN revision: 78202
2012-10-18 21:23:16 +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
Ricardo de Almeida Gonzaga
e7b72f567a
ephysics: sandbox apply actions on restart
...
Patch by: Ricardo de Almeida Gonzaga <ricardo@profusion.mobi>
SVN revision: 78195
2012-10-18 19:18:13 +00:00
Ricardo de Almeida Gonzaga
d7757986c2
ephysics: adjust sandbox body type combo alignment
...
Patch by: Ricardo de Almeida Gonzaga <ricardo@profusion.mobi>
SVN revision: 78194
2012-10-18 19:18:08 +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
5fb31dfbd9
ephysics: fix configure.ac regarding tests
...
Fix trac ticket #1615 .
The first issue with configure is that `./configure --disable-build-tests`
doesn't disable tests.
And the second issue is that tests actually require elementary >= 1.7.99
SVN revision: 78135
2012-10-17 21:37:22 +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
Ricardo de Almeida Gonzaga
7a2e5cbdce
ephysics: adjust example docs based on Z axis enable.
...
Patch by: Ricardo de Almeida Gonzaga <ricardo@profusion.mobi>
SVN revision: 78133
2012-10-17 21:37:00 +00:00
Bruno Dilly
477e836db1
ephysics: sandbox rewrite
...
Too much duplicated / boilerplate code.
Things are much simpler now.
Also fix resizing constraint.
SVN revision: 78132
2012-10-17 21:36:41 +00:00
Bruno Dilly
b09c303d52
ephysics: use hoversel to select material on sandbox
...
SVN revision: 78096
2012-10-16 23:18:55 +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
Bruno Dilly
fe2c242367
ephysics: revert "EPhysics: suppersions file"
...
Oops, accidentally commited.
I need to investigate these leaks.
SVN revision: 78094
2012-10-16 23:18:42 +00:00