Commit Graph

130 Commits

Author SHA1 Message Date
Leandro Dorileo 9e76f59766 EPhysics: add hinge test
Add a test to simulate a hinge constraint using the generic constraint
API's.

--This line, and those below, will be ignored--


SVN revision: 79849
2012-11-29 18:53:56 +00:00
Leandro Dorileo 0b558bc80c EPhysics: generic constraint
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
2012-11-29 18:51:51 +00:00
Leandro Dorileo 14a4767f24 EPhysics: add a soft ellipsoid test
A test to rotate a soft ellipsoid to demonstrate the multi face implementation.


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



SVN revision: 79609
2012-11-23 21:52:25 +00:00
Leandro Dorileo ffecc4ac0f EPhysics: soft button test
A new test with a soft button deforming while clicking on it.


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



SVN revision: 79608
2012-11-23 21:52:18 +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 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
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 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
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
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 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 06bf7b0761 ephysics: add dices test
SVN revision: 79047
2012-11-09 18:53:26 +00:00
Bruno Dilly 7aff5fb13e ephysics: clean up flag test
SVN revision: 78731
2012-10-31 21:03:23 +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 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
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
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 3804a911e1 ephysics: support light on soft bodies
SVN revision: 78476
2012-10-25 21:53:23 +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
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
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
Leandro Dorileo 103c9ffaa0 EPhysics: test_flag cleanup
Get rid of the dragging -> grabbing naming mess.


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



SVN revision: 78092
2012-10-16 23:18:29 +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 9bb6e8ce7c EPhysics: flag test - grabbing support
Patch by: Leandro Dorileo <dorileo@profusion.mobi>



SVN revision: 78089
2012-10-16 23:12:53 +00:00
Bruno Dilly eb4860c6e1 ephysics: let pages on top, not centered
suggested by marina



SVN revision: 78086
2012-10-16 23:12:34 +00:00
Bruno Dilly 647f74efd6 ephysics: start sandbox with some sections collapsed
SVN revision: 78085
2012-10-16 23:12:29 +00:00
Bruno Dilly 722506ddaa ephysics: use auto policy for scroller on sandbox
SVN revision: 78084
2012-10-16 23:12:23 +00:00
Bruno Dilly 3f8e18202b ephysics: remove sanbox title and align reset button
suggested by marina



SVN revision: 78083
2012-10-16 23:12:18 +00:00
Bruno Dilly f06f14c426 ephysics: make body type selection works
SVN revision: 78082
2012-10-16 23:12:13 +00:00
Ricardo de Almeida Gonzaga 1364bbc547 ephysics: changed sandbox spinners to sliders
Patch by: Ricardo de Almeida Gonzaga <ricardo@profusion.mobi>



SVN revision: 78080
2012-10-16 23:12:03 +00:00
Ricardo de Almeida Gonzaga 2cf55524a2 ephysics: sandbox widgets divided into smaller
categories



Patch by: Ricardo de Almeida Gonzaga <ricardo@profusion.mobi>



SVN revision: 78079
2012-10-16 23:11:58 +00:00
Ricardo de Almeida Gonzaga 42c6779423 ephysics: changed sandbox toggle to radio
Patch by: Ricardo de Almeida Gonzaga <ricardo@profusion.mobi>



SVN revision: 78078
2012-10-16 23:11:32 +00:00
Ricardo de Almeida Gonzaga c39bc45d85 ephysics: changed sandbox layout to toolbar and
naviframe



Patch by: Ricardo de Almeida Gonzaga <ricardo@profusion.mobi>



SVN revision: 78077
2012-10-16 23:11:27 +00:00
Ricardo de Almeida Gonzaga 23d89c2e5a ephysics: fix sandbox initial impulse and material
mass



Patch by: Ricardo de Almeida Gonzaga <ricardo@profusion.mobi>



SVN revision: 78076
2012-10-16 23:11:21 +00:00
Ricardo de Almeida Gonzaga 0ff841ed53 ephysics: fix sandbox callbacks
Patch by: Ricardo de Almeida Gonzaga <ricardo@profusion.mobi>



SVN revision: 78075
2012-10-16 23:11:16 +00:00