On Tue, Aug 26, 2008 at 4:23 AM, Saul Lethbridge <[EMAIL PROTECTED]> wrote: > Alternatively, could I set the actor as 'manipulatable' - some how prevent > the stage from receiving input and send synthetic drag signals to the > actors? Seems to me that it would be easier and more logical to not set > actors as manipulatable and simply move them around using clutter functions > (I did try this by the way but it seems if I don't set an actor's mode, it's > not visible at all).
The mode of the actor, and whether it is manipulatable is two different properties. The mode is either "dynamic" or "static". Manipulating the positions of actors directly by using Clutter APIs works to some extent but might cause issues in the simulation. It might be worth trying to move over larger distances than one pixel since the synchronisation of clutter state and box2d state tries to avoid unnecesary synchronisations over small distances. For manipulating dynamic actors it is highly recommended that this is done either by a mouse joint (as the code used when actors "manipulatable" is TRUE). Or by specifying the linear/angular velocity. In Box2D there are other additional APIs to excert a linear force on an actor on a specific point with a given direction. /Øyvind K. -- «The future is already here. It's just not very evenly distributed» -- William Gibson http://pippin.gimp.org/ http://ffii.org/ -- To unsubscribe send a mail to [EMAIL PROTECTED]
