Physics https://code.coronalabs.com/taxonomy/term/18/all en simple_toast https://code.coronalabs.com/code/simpletoast <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>Simple example for Toast Notification without any plugins for Corona SDK.</p> <p>For all supported platforms!</p> <p>How to use?</p> <p>• Add toast.lua in your Corona project root directory</p> <p>• Add string 'require "toast"' in main.lua</p> <p>• For display a toast notification, use next code:</p></div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">krdpnsk</div></div></div> Thu, 14 Nov 2019 07:18:03 +0000 krdpnsk 207 at https://code.coronalabs.com Simple AI for Corona SDK https://code.coronalabs.com/code/simple-ai-corona-sdk <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><h1>Simple artificial intelligence for Corona SDK</h1> <ul> <li>easy connect to the project</li> <li>light, fast and easy in use</li> <li>flexible</li> <li>extensiable</li> </ul> <h1>Overview</h1></div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">enbahtov</div></div></div> Sat, 02 Jul 2016 04:23:38 +0000 enbahtov 202 at https://code.coronalabs.com Point - A 2D Math Library. Simplifies vector math. https://code.coronalabs.com/code/point-2d-math-library-simplifies-vector-math <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>2d Math Library for Corona SDK / Lua</p> <p>Point is a 2d math library for Corona SDK or just plain ol' lua. It allows us to think of positions within corona as single units (points) vs independent x and y coordinates. You can run methods directly on those points.</p> </div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">Tameem Hamoui</div></div></div> Wed, 18 May 2016 05:33:43 +0000 tameem50 198 at https://code.coronalabs.com dmc_trajectory – parabolic motion for your objects https://code.coronalabs.com/code/dmctrajectory-%E2%80%93-parabolic-motion-your-objects <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p><code>dmc_trajectory</code> is a Lua module which moves objects following ballistic trajectories (parabolic motion) without using the physics engine. The module can also auto-rotate objects to match the slope of the trajectory path. Using it is as simple as setting up a transition with a few Corona parameters.</p></div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">dmccuskey</div></div></div> Fri, 02 May 2014 17:28:03 +0000 Anonymous 103 at https://code.coronalabs.com Arrow with drag applied to tail feathers. https://code.coronalabs.com/code/arrow-drag-applied-tail-feathers <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>I've tried to implement a similar drag effect as seen here: <a href="http://www.iforce2d.net/b2dtut/sticky-projectiles">http://www.iforce2d.net/b2dtut/sticky-projectiles</a></p> </div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">HoraceBury</div></div></div> Fri, 14 Mar 2014 09:50:04 +0000 Anonymous 91 at https://code.coronalabs.com mathlib.lua https://code.coronalabs.com/code/mathliblua <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>Updated mathematics library including polygon and various trigonometry functions.</p> </div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">HoraceBury</div></div></div> Sat, 08 Mar 2014 15:08:13 +0000 Anonymous 84 at https://code.coronalabs.com Polygon Exploder and Triangulator https://code.coronalabs.com/code/polygon-exploder-and-triangulator <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>App creates star polygons at random locations. A tap on the polygon calls a general-purpose triangulator, adds the triangles as physics bodies, and gives them a spin to simulate an explosion. When all the fragments have flown off the screen, a new star is created.</p> <p>The triangulator code can easily be snipped for other purposes.</p> </div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">bobcook47</div></div></div> Thu, 06 Mar 2014 01:27:01 +0000 Anonymous 83 at https://code.coronalabs.com EndlessScroller https://code.coronalabs.com/code/endlessscroller <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>Corona SDK example showing how to create and endless scroller type game.</p> <p>See the video at: <a href="http://youtu.be/UZjt6b4k7Io">http://youtu.be/UZjt6b4k7Io</a></p> </div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">funkyvisions</div></div></div> Fri, 21 Feb 2014 21:31:08 +0000 Anonymous 76 at https://code.coronalabs.com Fluid Simulation - Meta balls https://code.coronalabs.com/code/fluid-simulation-meta-balls <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>This is just one example of what u can achieve with Corona SDK Graphics 2.0. Enjoy</p> </div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">Trancelo0p</div></div></div> Wed, 19 Feb 2014 20:24:33 +0000 Anonymous 73 at https://code.coronalabs.com Physics Body Shape Flipper https://code.coronalabs.com/code/physics-body-shape-flipper <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>This function flips a single or multi-element physics body and returns the flipped shape declaration for usage within the "physics.addBody()" API. Currently, this version only supports <strong>horizontal</strong> flipping (reflection across a theoretical center vertical axis).</p></div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">Brent Sorrentino</div></div></div> Wed, 12 Feb 2014 22:23:00 +0000 Anonymous 69 at https://code.coronalabs.com Create complex non-convex bodies https://code.coronalabs.com/code/create-complex-non-convex-bodies <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>This is a port to LUA and Corona SDK of the Convex Separator for Box2D class written by Antoon Angelov.<br /> It converts complex, non-convex shapes into fully supported multi-bodies.<br /></p></div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">Ragdog Studios SRL</div></div></div> Sun, 26 Jan 2014 06:52:24 +0000 Anonymous 64 at https://code.coronalabs.com Physics Collision Library https://code.coronalabs.com/code/physics-collision-library <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>To help with the calculation of physics collision categories and masks there is an excellent table available:<br /> <a href="http://forums.coronalabs.com/topic/2128-collision-filters-helper-chart/">http://forums.coronalabs.com/topic/2128-collision-filters-helper-chart/</a></p></div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">HoraceBury</div></div></div> Tue, 21 Jan 2014 11:44:49 +0000 Anonymous 60 at https://code.coronalabs.com