Page 1 of 1

Is there any accelerometer object ?

Posted: 07 Dec 2011 17:33
by ease
i own a lemur and an iphone.
First of all thanks a lot LIINE for this release it s amazing....
Like the title say: Is there any object that could take advantage of this iphone/ipad accelerometer and other object that lemur don't have....
Thx a lot....

Re: Is there any accelerometer object ?

Posted: 07 Dec 2011 18:03
by nick_liine
Hi ease,

Yes indeed there is an accelerometer function. I've attached a simple template at iPhone resolution. Check out the action() scripts in MultiBall and RingArea.

Cheers,
Nick

Re: Is there any accelerometer object ?

Posted: 08 Dec 2011 02:08
by Macciza
High
This is really cool - is the 'z' axis accelorometer[2]? I'll have to check . . . .
Is the gyro accessable? Or the Sudden Motion Sensor?
Oh and the Ambient Light detector?

So much to investigate . . .
Cheers
MM

Edit- oops was looking at Jazz Editor not Lemur Editor - I see now that the accelromoter and battery are available but not the others, sorry . . .

Re: Is there any accelerometer object ?

Posted: 08 Dec 2011 02:41
by armatronix
Very cool.

It looks like the z-axis is available with accelerometer[2]. Is it a -2..2 range on the z axis?

I also found that placing (accelerometer[1]+1)/2 into the Ring Area's attractor_y behavior and (accelerometer[0]*-1+1)/2 into the attractor_x behavior smooths out the output pretty well. Please see the attached.

Nick, is there a way I can make it so that the RingArea ball doesn't respond to a touch input now that I've done this?

Also, Is there a way to lock the screen rotation from within the project?

Thanks and sorry for the noob questions, lots more to come.

-Hans
AccelTestArmatronix.zip
Note: I'm getting an error, "The extension jzml is not allowed" if I try to upload the file without zipping it first, I'm not sure if that's desired behavior or not.
(1.04 KiB) Downloaded 255 times

Re: Is there any accelerometer object ?

Posted: 08 Dec 2011 05:42
by ease
Merci beaucoup Nick c'est débile !!!!

Re: Is there any accelerometer object ?

Posted: 08 Dec 2011 14:49
by nick_liine
armatronix wrote: Nick, is there a way I can make it so that the RingArea ball doesn't respond to a touch input now that I've done this?
No, generally speaking objects always respond to touch.
armatronix wrote: Also, Is there a way to lock the screen rotation from within the project?
No, you need to use the physical switch on the iPad.

Re: Is there any accelerometer object ?

Posted: 25 Feb 2013 19:47
by muld
Ben justement je cherchais aussi comment faire pour avoir l'accelerometre de l'iPhone merci pour le Jzml !
(Salut Ease !!! haha comme on se retrouve !)

Re: Is there any accelerometer object ?

Posted: 30 Dec 2015 14:12
by fabricedegraef
hi!! thanks for this HUGE potential template. ...sorry for this stupid question but once you have the template on the iPhone how to you make it send datas to the ad-hoc network? i have midi monitor blind to any message...