Bruno Dilly
89eaea1c65
EPhysics: fix bug when changing head of worlds list
...
Animator callback was working with a not updated list pointer.
SVN revision: 75510
2012-08-21 17:47:29 +00:00
Bruno Dilly
dde0746fcb
EPhysics: improve bodies group description documentation
...
SVN revision: 75509
2012-08-21 17:47:24 +00:00
Bruno Dilly
a10277b529
EPhysics: don't activate body if not going to apply
...
forces
Otherwise it won't stop, sleeping thresholds won't work...
SVN revision: 75508
2012-08-21 17:47:18 +00:00
Bruno Dilly
335912df94
EPhysics: fix y component convertion on forces and
...
impulses
SVN revision: 75480
2012-08-20 22:18:14 +00:00
Bruno Dilly
80f7e6307c
EPhysics: consider gravity on forces getter
...
SVN revision: 75479
2012-08-20 22:17:34 +00:00
Bruno Dilly
335dcc1165
EPhysics: add test for forces API
...
SVN revision: 75478
2012-08-20 22:17:11 +00:00
Bruno Dilly
b66f460e84
EPhysics: test torque forces
...
SVN revision: 75477
2012-08-20 22:16:02 +00:00
Bruno Dilly
218004c9e3
EPhysics: add forces API
...
Implement functions to make it possible to control forces acting
over a body.
SVN revision: 75476
2012-08-20 22:15:52 +00:00
Bruno Dilly
4bccde902a
EPhysics: rotation set implemented
...
SVN revision: 75475
2012-08-20 22:14:43 +00:00
Bruno Dilly
d3e74fce50
EPhysics: implement generic apply impulse for bodies
...
It results in central and torque impulses.
SVN revision: 75474
2012-08-20 22:14:25 +00:00
Bruno Dilly
1ef5ae1a2d
EPhysics: fix torque impulse
...
SVN revision: 75473
2012-08-20 22:13:38 +00:00
Bruno Dilly
5c32157f04
EPhysics: fix ephysics central impulse unit and
...
improve docs
It should use a unit based on pixels, not meters.
This way is more compatible with the rest of API and easier
to see the result.
SVN revision: 75472
2012-08-20 22:12:14 +00:00
Bruno Dilly
df457b4645
EPhysics: implement body move(), resize()
...
It was already possible to move and resize using geometry get / set,
but if just one of the actions is wanted, this new API is easier for the user
and save a few operations.
SVN revision: 75471
2012-08-20 22:10:52 +00:00
Bruno Dilly
b5221d0705
EPhysics: fix old bug on velocity setter
...
It should invert y component since evas y coords increase
going down.
SVN revision: 75337
2012-08-16 21:35:31 +00:00
Bruno Dilly
b007921b94
EPhysics: add test for windows resize
...
It listen for windows resize and changes objects size,
world render geometry and world rate.
SVN revision: 75336
2012-08-16 21:35:25 +00:00
Bruno Dilly
a3f12a0ae0
EPhysics: fix rate set implementation
...
Update everything that depends on rate:
- worlds
- bodies
- constraints
SVN revision: 75335
2012-08-16 21:35:20 +00:00
Bruno Dilly
8b5737d2df
EPhysics: make it possible to recalculate gravity
...
SVN revision: 75334
2012-08-16 21:35:14 +00:00
Bruno Dilly
3fe6e1dc40
EPhysics: constraint recalc
...
Just making it possible to fix world rate set.
This code will be modified when all constraints are added as generic
and modified later.
SVN revision: 75333
2012-08-16 21:35:09 +00:00
Bruno Dilly
44aeda07ae
EPhysics: implement body recalc
...
SVN revision: 75332
2012-08-16 21:35:04 +00:00
Bruno Dilly
1328120089
EPhysics: small fix on body docs
...
SVN revision: 75331
2012-08-16 21:34:59 +00:00
Bruno Dilly
eff2ac3302
EPhysics: add test displaying body acceleration
...
Linear and angular.
It has to be done on user side, since it requires to keep previous
velocity to calculate it.
I'll expose forces later but I don't think it would be enough
because impulses just modifies the ammount of velocity directly,
it doesn't create a force for a tick or something like that.
So velocity changes caused by impulse wouldn't be get as acceleration.
SVN revision: 75330
2012-08-16 21:34:54 +00:00
Bruno Dilly
50413abfc9
EPhysics: drop camera zoom
...
Reasons:
- we don't have previewed cases for that (would be code to be implemented
and maintained without use)
- can be done on user side changing world rate, camera position, objects size
SVN revision: 75329
2012-08-16 21:34:49 +00:00
Bruno Dilly
ebf3a282fb
EPhysics: delete constraints if world is deleted
...
SVN revision: 75328
2012-08-16 21:34:44 +00:00
Bruno Dilly
405c5affa1
EPhysics: fix constraint angular limit type
...
SVN revision: 75327
2012-08-16 21:34:39 +00:00
Bruno Dilly
ab877d4d23
EPhysics: small fixes on sleeping threshold docs
...
SVN revision: 75326
2012-08-16 21:34:34 +00:00
Bruno Dilly
7a759f05b6
EPhysics: support running only specified test
...
SVN revision: 75325
2012-08-16 21:34:29 +00:00
Bruno Dilly
ae28b7a504
EPhysics: listen for associated evas object resize event
...
So physics body will resize together.
SVN revision: 75230
2012-08-13 22:24:47 +00:00
Bruno Dilly
3c27a0288d
EPhysics: fix updating bodies with evas object without
...
geometry
If a evas object associated to a body don't have w or h, don't
try to apply map / rotation on it.
SVN revision: 75229
2012-08-13 22:24:36 +00:00
Bruno Dilly
1de398ce60
EPhysics: add camera move event
...
SVN revision: 75228
2012-08-13 22:24:28 +00:00
Bruno Dilly
5088b6bb93
EPhysics: add test using different shapes
...
Position / size looks buggy.
Need to be fixed.
SVN revision: 75153
2012-08-10 21:05:28 +00:00
Bruno Dilly
031d47d1a9
EPhysics: support bodies with generic shapes
...
Using EPhysics Shape.
SVN revision: 75152
2012-08-10 21:05:19 +00:00
Bruno Dilly
6c53875522
EPhysics: add EPhysics Shape
...
It will be used to create bodies with collision shapes other
than boxes or circles.
For now, only convex shapes.
SVN revision: 75151
2012-08-10 21:05:13 +00:00
Bruno Dilly
2497491440
EPhysics: move code duplication to _ephysics_body_add
...
Also, add missing checks.
SVN revision: 75150
2012-08-10 21:05:05 +00:00
Bruno Dilly
fd6a61ed22
EPhysics: update images
...
Remove unused and add new images
SVN revision: 75149
2012-08-10 21:04:51 +00:00
Bruno Dilly
33613b8f09
EPhysics: Avoid garbagge in cb objects.
...
SVN revision: 75148
2012-08-10 21:04:42 +00:00
Bruno Dilly
9eb298827c
EPhysics: optimization and fixes for camera
...
Avoid calling update of inactive bodies if camera didn't really
moved.
And update them if camera_position_set is called.
SVN revision: 75147
2012-08-10 21:04:35 +00:00
Bruno Dilly
1de4a67ca0
EPhysics: fix world event callbacks management
...
SVN revision: 75146
2012-08-10 21:04:22 +00:00
Bruno Dilly
fb7528829b
EPhysics: avoid invalid read / writes on world free
...
Looks like we'll need to fix discrete dynamics world destructor
on bullet, but current revision is kind of messed.
I'll see what I can do later.
And yes, it will leak the ddw until it's fixed.
SVN revision: 75145
2012-08-10 21:04:16 +00:00
Bruno Dilly
cf6678bbd4
EPhysics: improving body's event callbacks management
...
SVN revision: 75144
2012-08-10 21:04:08 +00:00
Bruno Dilly
73e77dff26
EPhysics: fix sleeping threshold getter
...
SVN revision: 75143
2012-08-10 21:03:57 +00:00
Bruno Dilly
e1036529b3
EPhysics: re-write sleeping threshold test
...
It was buggy.
SVN revision: 75142
2012-08-10 21:03:47 +00:00
Bruno Dilly
2d2844d05e
EPhysics: properly handle body delete
...
SVN revision: 75141
2012-08-10 21:03:39 +00:00
Bruno Dilly
0bd1f327a4
EPhysics: properly handle world delete
...
SVN revision: 75140
2012-08-10 21:03:29 +00:00
Bruno Dilly
4d800075e7
EPhysics: use inlist for world's bodies list
...
SVN revision: 75139
2012-08-10 21:03:06 +00:00
Bruno Dilly
595e8c8195
EPhysics: use inlist for worlds list
...
SVN revision: 75138
2012-08-10 21:03:01 +00:00
Bruno Dilly
d432a4faba
EPhysics: Add test exposing delete issues
...
Callbacks and bodies delete are not correctly handled.
SVN revision: 75137
2012-08-10 21:02:56 +00:00
Bruno Dilly
af1351f172
EPhysics: fix camera track test
...
SVN revision: 75136
2012-08-10 21:02:48 +00:00
Bruno Dilly
8973043481
EPhysics: camera test improved
...
Show how a moving background could be used with the concept of
camera.
SVN revision: 75135
2012-08-10 21:02:39 +00:00
Bruno Dilly
bc2d36257f
EPhysics: don't show background box on camera tests
...
SVN revision: 75134
2012-08-10 21:02:25 +00:00
Bruno Dilly
bb43446421
EPhysics: small fixes related to slider constraint
...
SVN revision: 74700
2012-07-31 22:24:51 +00:00