+ 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
It is now you can run programs with names generated dinamically. Say that you
have 10 programs indexed somehow. You can now call them using the following snippet:
script {
new program_id[15], i;
for (i = 0; i < 10; i++) {
snprintf(program_id, 15, "my_program_%d", i+1);
run_program(get_program_id(program_id));
}
}
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
SVN revision: 80199
Use a bigger image to soft button tests, add light on/off button,
use of anchor hardness API.
--This line, and those below, will be ignored--
SVN revision: 80108
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
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
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
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
Avoiding a circular dependency edje -> elementary -> edje.
It was breaking the build system when option --enable-build-examples was given.
SVN revision: 79839
Every touch down event should be converted into mouse in +
mouse button. So we should let every mouse in event go in the
_ecore_evas_wl_common_cb_mouse_in(), instead of preventing it by
"if (!ee->in)". Besides that, the coordinates carried by mouse in
event should be set to Evas_Public_Data::pointer by calling
_ecore_evas_mouse_move_process().
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 79818
Just two bodies falling (a circle and a box) and colliding
to the floor.
bug: when edje is resized objects will be moved back to original
position.
SVN revision: 79794
Just an initial support, it's not possible to configure worlds
or bodies. Just adding it. Only possible customization is the
type of body.
It defines what's the collision shape and type (rigid / soft).
It can't be changed over time, so it's not on part's description.
It's expected that many cases won't be covered yet.
If you have ephysics installed and don't want it, just use
--disable-ephysics. It shouldn't affect anything for cases
where ephysics is not installed.
SVN revision: 79793
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
Event structs used for IPC must be correctly initialized, since they are
not aligned. This fixes some warnings reported by valgrind.
SVN revision: 79726
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
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
implementation
This patch introduces the ellipsoid soft body and its multi face
implementation.
Patch by: Leandro Dorileo <dorileo@profusion.mobi>
SVN revision: 79603
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
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
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
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
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
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
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
The current code was a mix of r78302 (when edbus2 support was made
optional) and r78867 (when edbus2 support was made a required
dependency).
This patch fixes a few bugs:
o The syntax of the AC_ARG_WITH call was wrong and `dbusservicedir' was
always set to "", which meant it was always installed into
${datadir}/dbus-1/services.
o The check for the value of $dbusservicedir was wrong at the end of
configure.ac, since passing "yes" to --with-dbus-services does not
make sense.
And simplifies some checks and calls now that edbus2 is mandatory.
Patch by Raphael Kubo da Costa
SVN revision: 79464
Example: there's an object in "/org/bla" and we are adding an object in
"/". Thus the second should becaome the parent of the first, which was a
root object since it had no parent yet.
Patch by: José Roberto de Souza <zehortigoza@profusion.mobi>
SVN revision: 79386
Without this message, it's not possible for user create the error
message. Also update the docs to clarify usage of the Get/Set callbacks.
Patch by: José Roberto de Souza <zehortigoza@profusion.mobi>
SVN revision: 79380
If a path which should be monitored does not exist, we can't monitor it.
If we create the path and open it, efreet will signal the cache daemon
that the cache should be rebuilt. If this was a system path, we would
ignore the request, but with this change it will see that the path isn't
monitored and rebuild the cache.
SVN revision: 79244