To celebrate the second issue of 10Finger’s CoronaPaper, Linda Ettehag writes on a brand-new physics discovery that will “wow” Corona developers. The magazine is centered around all things Corona – from offering awesome tutorials, to API news to interviews with star developers and Corona team members.
10Fingers is offering CoronaPaper for free from January 31 – February 4, 2013! Don’t miss your chance to experience the latest and greatest Corona tutorials, app reviews, news on APIs, and more.
We at 10Fingers wanted to make a world with multilayered physics. Think of it like this: one layer with bouncing balls with the “bounce factor” set to 1, and another layer behind it with more bouncing balls, but with the bounce factor set to 2.
We were able to achieve this using mask bits (collision filters), but it didn’t feel fluid, and that presented limitations on how many layers we could have. We truly wanted a fluid solution and a limitless number of layers.
Oskar, one of our developers, sat down to meditate until he had a brilliant idea. His idea was to make all layers “independent” and give them physics properties of their own, making objects move smoothly between them — and on top of that, producing a 3D illusion.
Was it possible? He rushed to his keyboard and typed furiously. Blood, sweat, and tears were shed and hours passed — could he succeed? Later that day, a masterpiece was born! We didn’t think this was possible, but now we can share this information with you so you can explore a new world with the physics engine. We like to think that anything is possible — sometimes you just have to try harder. With that in mind, you can see a sample of the Oskar’s solution below.
Oskar’s demo will be presented in the January 31, 2013 issue of CoronaPaper.
This second issue of CoronaPaper centers around physics. In addition, if you like to add sound effects to your games, you will drool over our Heavy Game Audio article. Also, you’ll get a chance to meet Corona ambassador David Roulin and discover how he works with Corona Education. For those who love prizes, you’ll enjoy the Code Less, Play More Contest; if you send us your best entry, you’ll be entered to win an iPad Mini.
We hope you enjoy CoronaPaper!
Linda Ettehag, CoronaPaper
Posted by Inna Treyger. Thanks for reading...