<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Swami Charan&#039;s Blog &#187; APE</title>
	<atom:link href="http://www.swamicharan.com/blog/tag/ape/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.swamicharan.com/blog</link>
	<description>My personal blog...</description>
	<lastBuildDate>Sat, 17 Jul 2010 13:02:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>Open Source ActionScript APIs</title>
		<link>http://www.swamicharan.com/blog/flash/open-source-actionscript-apis/</link>
		<comments>http://www.swamicharan.com/blog/flash/open-source-actionscript-apis/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 05:50:04 +0000</pubDate>
		<dc:creator>Swami Charan</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Actionscript APIs]]></category>
		<category><![CDATA[APE]]></category>
		<category><![CDATA[Away3D]]></category>
		<category><![CDATA[opensource actionscript API]]></category>
		<category><![CDATA[Papervision3D]]></category>

		<guid isPermaLink="false">http://www.swamicharan.com/blog/?p=713</guid>
		<description><![CDATA[As you all might have heard of many opensource ActionScript API's like APE, Away3D, Papervision3D etc. You can get all of such opensource APIs at one one place: http://actionscriptapis.com/ Nice to see all the API's at one place. Check them out...]]></description>
			<content:encoded><![CDATA[<p>As you all might have heard of many opensource ActionScript API's like APE, Away3D, Papervision3D etc.</p>
<p>You can get all of such opensource APIs at one one place: <a href="http://actionscriptapis.com/"><strong><span style="color: #0000ff;">http://actionscriptapis.com/</span></strong></a></p>
<p>Nice to see all the API's at one place. Check them out...</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swamicharan.com/blog/flash/open-source-actionscript-apis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making particles dragable in APE</title>
		<link>http://www.swamicharan.com/blog/flash/making-particles-dragable-in-ape/</link>
		<comments>http://www.swamicharan.com/blog/flash/making-particles-dragable-in-ape/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 06:42:38 +0000</pubDate>
		<dc:creator>Swami Charan</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[APE]]></category>
		<category><![CDATA[APE for Flash]]></category>
		<category><![CDATA[Dragable Circle Particle]]></category>
		<category><![CDATA[Dragable Rectangle Particle]]></category>
		<category><![CDATA[Dragging in APE]]></category>
		<category><![CDATA[Flash AS3]]></category>
		<category><![CDATA[Physics in Flash]]></category>
		<category><![CDATA[Vector]]></category>

		<guid isPermaLink="false">http://www.swamicharan.com/blog/?p=686</guid>
		<description><![CDATA[As you all know what APE is, I will go directly into what problem i faced when started with it and how i overcame it. First of all, APE source has class named Vector defined in it. When we try to publish any content with APE on Flash CS4/FP 10, there will be a conflict [...]]]></description>
			<content:encoded><![CDATA[<p>As you all know what APE is, I will go directly into what problem i faced when started with it and how i overcame it. First of all, APE source has class named <strong>Vector</strong> defined in it. When we try to publish any content with APE on Flash CS4/FP 10, there will be a conflict that arises between Vector class of APE and Vector Datatype of Flash Player 10.</p>
<p>So, i had to modify the APE source to rename the Vector class in APE and change the reference of Vector in APE source with the new name. Then i could able to run content with APE on Flash Player 10. You can download the modified source from <strong><a href="http://www.swamicharan.com/blog/wp-content/uploads/2009/11/source.zip" target="_blank"><span style="color: #0000ff;">here</span></a></strong>.</p>
<p><strong>Making Particle Dragable:</strong></p>
<p>After successful in running the content on Flash Player 10, i wanted to check out how drag works on APE particles. There are separate class files called 'DragableCircleParticle.as' and 'DragableRectangleParticle.as' under Files section of <a href="http://groups.google.com/group/ape-general/files" target="_blank"><span style="color: #0000ff;">APE Google Group</span></a>.</p>
<p>Place these .as files under '<strong>source\org\cove\ape</strong>' Folder of APE.</p>
<p>Using these classes can make our work easy in making particles dragable.</p>
<p>These dragable particles can be initialized as follows:</p>
<pre class="brush: php;">DragableCircleParticel(x:Number, y:Number, radius:Number, fixed:Boolean, mass:Number,elasticity:Number, frictio:Number);

DragableRectanlgeParticle(x:Number, y:Number, width:Number, height:Number, rotation:Number, fixed:Boolean, mass:Number, elasticity:Number, friction:Number)</pre>
<p class="brush: php;"><span id="more-686"></span></p>
<p class="brush: php;">Here is the sample code to make use of these classes:</p>
<p class="brush: php;"> </p>
<pre class="brush: php;">stage.frameRate=60;
import org.cove.ape.*;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.events.Event;

addEventListener(Event.ENTER_FRAME, run);

var apeholder:MovieClip = new MovieClip();
apeholder.graphics.drawRect(0, 0, 550, 400);
addChild(apeholder);

APEngine.init(1/3);
APEngine.container=apeholder;

APEngine.addForce(new VectorForce(false,0,2));
var examplelevel:Group = new Group();
examplelevel.collideInternal=true;

var leftwall:RectangleParticle=new RectangleParticle(5,200,10,600,0,true);
leftwall.setStyle(3, 0x000000, 1, 0xFFFFFF,1);
examplelevel.addParticle(leftwall);

var rightwall:RectangleParticle=new RectangleParticle(545,200,10,600,0,true);
rightwall.setStyle(3, 0x000000, 1, 0xFFFFFF,1);
examplelevel.addParticle(rightwall);

var bottomwall:RectangleParticle=new RectangleParticle(275,395,550,10,0,true);
bottomwall.setStyle(3, 0x000000, 1, 0xFFFFFF,1);
examplelevel.addParticle(bottomwall);

var block:DragableRectangleParticle=new DragableRectangleParticle(Math.random()*550,- Math.random()*50, 80, 80,0, false,3);
examplelevel.addParticle(block);

var wheel:DragableCircleParticle=new DragableCircleParticle(Math.random()*550,- Math.random()*50, 20, false,3);
examplelevel.addParticle(wheel);

APEngine.addGroup(examplelevel);

function run(event:Event):void {
	APEngine.step();
	APEngine.paint();
}</pre>
<p class="brush: php;">Here is the output <a href="http://www.swamicharan.com/blog/wp-content/uploads/2009/12/dragable.swf " target="_blank"><span style="color: #0000ff;"><strong>SWF</strong></span></a>.</p>
<p class="brush: php;">Hope this would be helpful...</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swamicharan.com/blog/flash/making-particles-dragable-in-ape/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My First APE Experiment</title>
		<link>http://www.swamicharan.com/blog/flash/my-first-ape-experiment/</link>
		<comments>http://www.swamicharan.com/blog/flash/my-first-ape-experiment/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 05:30:15 +0000</pubDate>
		<dc:creator>Swami Charan</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Actionscript Physics Engine]]></category>
		<category><![CDATA[APE]]></category>
		<category><![CDATA[APE for Flash]]></category>
		<category><![CDATA[APE for Flashplayer 10]]></category>
		<category><![CDATA[APE for Flex]]></category>
		<category><![CDATA[Dragable Rectangle Particle]]></category>
		<category><![CDATA[Flash Physics Engine]]></category>
		<category><![CDATA[Flex Physics Engine]]></category>
		<category><![CDATA[Modified APE for Flashplayer 10]]></category>
		<category><![CDATA[RectangleParticle]]></category>

		<guid isPermaLink="false">http://www.swamicharan.com/blog/?p=579</guid>
		<description><![CDATA[As you all know APE(ActionScript Physics Engine) is an OpenSource free AS3 2D Physics engine that can be used for Flash and Flex.   I just tried APE and made this simple SWF as a beginning into the world of Physics in Flash. You can drag these RectangleParticles which you see in this swf. You [...]]]></description>
			<content:encoded><![CDATA[<p>As you all know <a href="www.cove.org/ape/" target="_blank"><span style="color: #0000ff;"><strong>APE(ActionScript Physics Engine)</strong></span></a> is an OpenSource free AS3 2D Physics engine that can be used for Flash and Flex.</p>
<p><img class="aligncenter size-full wp-image-583" title="APE" src="http://www.swamicharan.com/blog/wp-content/uploads/2009/11/APE1.jpg" alt="APE" width="440" height="321" /></p>
<p> </p>
<p>I just tried APE and made this simple SWF as a beginning into the world of Physics in Flash. You can drag these RectangleParticles which you see in this swf. You can get the SWF <a href="http://www.swamicharan.com/blog/wp-content/uploads/2009/11/APE.zip" target="_blank"><span style="color: #0000ff;"><strong>here</strong></span></a>.</p>
<p><span id="more-579"></span></p>
<p>One issue which i faced while doing is that there is some compatibility issue with APE and Flash Player 10. As the Vector Class used in APE will conflict with new Vector of Flash Player 10.</p>
<p>I had to fix with by changing the class name and all the references to Vector class in APE. With this i could able to succeed in running APE on Flash Player 10.</p>
<p>You can download the working modified <a href="http://www.swamicharan.com/blog/wp-content/uploads/2009/11/source.zip" target="_blank"><span style="color: #0000ff;"><strong>APE Source</strong></span></a> for Flash Player 10.</p>
<p>I am still trying to figure out how to rotate the RectangleParticles on bounce. In this example, RectangleParticles are not bouncing. Will try to figure it out and will post soon about it...</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swamicharan.com/blog/flash/my-first-ape-experiment/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Physics Engines For Flash</title>
		<link>http://www.swamicharan.com/blog/flash/physics-engines-for-flash/</link>
		<comments>http://www.swamicharan.com/blog/flash/physics-engines-for-flash/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 15:03:18 +0000</pubDate>
		<dc:creator>Swami Charan</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[APE]]></category>
		<category><![CDATA[AS3 Physics Engines]]></category>
		<category><![CDATA[BOX2DFLASHAS3]]></category>
		<category><![CDATA[Fisix Engine]]></category>
		<category><![CDATA[Flash Physics]]></category>
		<category><![CDATA[Flash Physics Engines]]></category>
		<category><![CDATA[FOAM]]></category>
		<category><![CDATA[Glaze]]></category>
		<category><![CDATA[Physics Engines]]></category>
		<category><![CDATA[Popshapes]]></category>

		<guid isPermaLink="false">http://www.swamicharan.com/blog/?p=557</guid>
		<description><![CDATA[As we all know, there are many Physics Engines for Flash now. Each have their own Pros and Cons, but Actionscript 3.0 provides increase in performance compared to Actionscript2.0. Whatever might be your requirement for Physics in your Flash design, we are going to talk about some useful Physics Engines available now for Flash. ActionScript [...]]]></description>
			<content:encoded><![CDATA[<p>As we all know, there are many Physics Engines for Flash now. Each have their own Pros and Cons, but Actionscript 3.0 provides increase in performance compared to Actionscript2.0. Whatever might be your requirement for Physics in your Flash design, we are going to talk about some useful Physics Engines available now for Flash.</p>
<p><strong><a href="http://www.cove.org/ape/" target="_self"><span style="color: #0000ff;">ActionScript Physics Engine (APE)</span></a></strong></p>
<p><img class="alignleft size-full wp-image-558" title="APE" src="http://www.swamicharan.com/blog/wp-content/uploads/2009/11/APE.jpg" alt="APE" width="388" height="208" /></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>APE (Actionscript Physics Engine) is a free AS3 open source 2D physics engine for use in Flash and Flex, released under the MIT License. APE is written and maintained by Alec Cove. The latest version available 0.45 alpha. You can get more info on APE at <a href="http://www.cove.org/ape/">http://www.cove.org/ape/</a>.</p>
<p><span id="more-557"></span></p>
<p><strong><a href="http://www.fisixengine.com/" target="_self"><span style="color: #0000ff;">Fisix Engine</span></a></strong></p>
<p>The fisix engine is a verlet based physics engine for flash written in Actionscript 3.0. This engine is aimed towards use in games and other relatively cpu intensive real-time applications.  The current version available is 0.5 Alpha.</p>
<p>This engine has got good documentatio in Wiki. You can find tutorials at <a href="http://wiki.fisixengine.com/index.php?title=FisixTutorials">http://wiki.fisixengine.com/index.php?title=FisixTutorials</a>.</p>
<p><strong><a href="http://blog.generalrelativity.org/actionscript-30/foam-rigid-body-physics-engine-alpha-release-01/" target="_self"><span style="color: #0000ff;">FOAM</span></a></strong></p>
<p>FOAM is primarily intended as a resource for developers interested in simulating physics. It has a carefully thought out OOP structure and modular design.</p>
<p><img class="alignleft size-full wp-image-559" title="foam" src="http://www.swamicharan.com/blog/wp-content/uploads/2009/11/foam.jpg" alt="foam" width="389" height="297" /></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>Currently available version is 0.1 Alpha.</p>
<p><strong><a href="http://box2dflash.sourceforge.net/" target="_self"><span style="color: #0000ff;">BOX2DFlASHAS3</span></a></strong></p>
<p>Box2DFlashAS3 is an open source port of Erin Catto's powerful c++ physics library Box2D. Its the most updated engine with current version being 2.0.1.</p>
<p><img class="alignleft size-full wp-image-560" title="box" src="http://www.swamicharan.com/blog/wp-content/uploads/2009/11/box.jpg" alt="box" width="443" height="248" /></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>Full sourcecode for the engine and examples can be downloaded from <a href="http://sourceforge.net/projects/box2dflash/">http://sourceforge.net/projects/box2dflash/</a>.</p>
<p><strong><a href="http://code.google.com/p/glaze/" target="_self"><span style="color: #0000ff;">Glaze</span></a> : <a href="http://code.google.com/p/glaze/">http://code.google.com/p/glaze/</a></strong></p>
<p>A game and physics engine for Flash including:</p>
<ul>
<li>Rigid Body Dynamics</li>
<li>Scene management</li>
<li>Line of sight</li>
<li>User Input</li>
<li>Scrolling</li>
<li>AI</li>
</ul>
<p>You can view online demo at <a href="http://home.planet.nl/~borst595/glaze.html">http://home.planet.nl/~borst595/glaze.html</a></p>
<p><strong><a href="http://lab.andre-michelle.com/physics-engine" target="_self"><span style="color: #0000ff;">PopShapes</span></a></strong></p>
<p>This physics engine works with penetration detection of any object. Source for this engine is available at <a href="http://lab.andre-michelle.com/physics-engine">http://lab.andre-michelle.com/physics-engine</a>.</p>
<p><img class="alignleft size-full wp-image-561" title="popshapes" src="http://www.swamicharan.com/blog/wp-content/uploads/2009/11/popshapes.jpg" alt="popshapes" width="388" height="385" /></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>These are a few which i could list from many Physics Engines available now. Try these and implement Physics in your Flash applications.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swamicharan.com/blog/flash/physics-engines-for-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

