<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/box2dflash/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/box2dflash/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/box2dflash/bugs/</id><updated>2013-10-19T20:09:03.058000Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>b2CircleShape not work as Sensor</title><link href="https://sourceforge.net/p/box2dflash/bugs/8/" rel="alternate"/><published>2013-10-19T20:09:03.058000Z</published><updated>2013-10-19T20:09:03.058000Z</updated><author><name>mrDN</name><uri>https://sourceforge.net/u/person-dn/</uri></author><id>https://sourceforge.net624652e2409f7c08f79459a0135dbf018248c1e9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;When I try to add b2CircleShape sensors to the body - they not generate contact data. If I change them to b2PolygonShape - all works fine.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>b2EdgeShape has no copy method</title><link href="https://sourceforge.net/p/box2dflash/bugs/7/" rel="alternate"/><published>2013-04-18T05:58:58Z</published><updated>2013-04-18T05:58:58Z</updated><author><name>Alexey Starkov</name><uri>https://sourceforge.net/u/lanzofforge/</uri></author><id>https://sourceforge.net678aaeb18b797204e8f4eaaa8fae49f499a13f2d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;b2EdgeShape has no Copy() method overrided, so when I try to add fixture with edge shape, the call fails inside CreateProxy.&lt;br /&gt;
It is because b2Fixture.Create method uses Copy to copy shape and getting null out of b2EdgeShape.Copy&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Mismatched Transform after Sleep</title><link href="https://sourceforge.net/p/box2dflash/bugs/6/" rel="alternate"/><published>2012-09-08T18:51:03Z</published><updated>2012-09-08T18:51:03Z</updated><author><name>David Mace</name><uri>https://sourceforge.net/u/evildave/</uri></author><id>https://sourceforge.net2169e0af8a2453836d746c517f63b9810e25dda8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Flash CS5.5 / Flex SDK 3.6&lt;/p&gt;
&lt;p&gt;If you use  body.GetPosition() and body.GetAngle() to sync the current physical position onto a Sprite/MovieClip, then as they fall asleep, the 'final' positions occasionally aren't up to date.  Soon, several things mismatch their location on the debug render, and 'odd' behaviors begins to manifest with invisibly misplaced collisions (sometimes as much as 500cm or 45 degrees of rotation).&lt;/p&gt;
&lt;p&gt;Initially I just disabled sleep with body.SetSleepingAllowed(false); but since the target is ultimately a mobile platform, that's not ideal.&lt;/p&gt;
&lt;p&gt;Better work around: Added a call to 'SynchronizeTransform()' to b2Body.SetAwake(false).  This will make sure the 'most recent' position+rotation reported when it fell asleep is correct, or at least more up-to-date than it was, without it.&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;Possibly making things 'even bigger', according to the simulation, would also solve this problem, which would put the cause back on me, 'not using it right'.  At 20 pixels per meter, this is about the 'right' scale for the things, on the tiny display that I'm working with.&lt;/p&gt;
&lt;p&gt;/**&lt;br /&gt;
* Set the sleep state of the body. A sleeping body has vety low CPU cost.&lt;br /&gt;
* @param   flag - set to true to put body to sleep, false to wake it&lt;br /&gt;
*/&lt;br /&gt;
public function SetAwake(flag:Boolean):void {&lt;br /&gt;
if (flag)&lt;br /&gt;
{&lt;br /&gt;
m_flags |= e_awakeFlag;&lt;br /&gt;
m_sleepTime = 0.0;&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
m_flags &amp;amp;= ~e_awakeFlag;&lt;br /&gt;
m_sleepTime = 0.0;&lt;br /&gt;
m_linearVelocity.SetZero();&lt;br /&gt;
m_angularVelocity = 0.0;&lt;br /&gt;
m_force.SetZero();&lt;br /&gt;
m_torque = 0.0;&lt;br /&gt;
SynchronizeTransform(); /** &amp;lt;== Added here. **/&lt;br /&gt;
}&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Possible bug in b2SeparationFunction.Initialize</title><link href="https://sourceforge.net/p/box2dflash/bugs/5/" rel="alternate"/><published>2012-05-26T07:38:04Z</published><updated>2012-05-26T07:38:04Z</updated><author><name>Alexey Malov</name><uri>https://sourceforge.net/u/amalov/</uri></author><id>https://sourceforge.net95ecdaf595b0ef4f730f032237ca1e9d700e2ff7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In method Box2D.Collision.b2SeparationFunction.Initialize there is a suspicious comparison at line 116:&lt;/p&gt;
&lt;p&gt;else if (cache.indexA[0] == cache.indexA[0])&lt;br /&gt;
{&lt;br /&gt;
// Two points on B and one on A&lt;/p&gt;
&lt;p&gt;The else if is always true. Did you mention:&lt;br /&gt;
else if (cache.indexA[0] == cache.indexA[1])&lt;br /&gt;
?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>RayCast</title><link href="https://sourceforge.net/p/box2dflash/bugs/4/" rel="alternate"/><published>2012-04-24T08:46:54Z</published><updated>2012-04-24T08:46:54Z</updated><author><name>abc_zsj</name><uri>https://sourceforge.net/u/zsj651128/</uri></author><id>https://sourceforge.net27279d237e38c60afe49fe68757cdfba1b5057a7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hi,i hava a problen that i think it's a bug&lt;br /&gt;
I use the Box2DFlashAS3  2.1a Examples\TestBed\TestRaycast.as,and i make some change(active other two b2CircleShape in the box2d world)&lt;br /&gt;
In theory,then ray Should get the closest point,but sometimes ,it's not,can you help me ?thank you!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>No DestroyWorld()</title><link href="https://sourceforge.net/p/box2dflash/bugs/3/" rel="alternate"/><published>2008-09-01T19:34:43Z</published><updated>2008-09-01T19:34:43Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netb76e9f6c5d1aacabd45217f3292663307c2407af</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In the original Box2D, there is a destructor in the world which cleans up all the bodies, joints, etc. in the world. The destructor has apparently not been ported. The solution is to port that method as DestroyWorld() that I can call manually.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Error in b2Distance : undeclared variable</title><link href="https://sourceforge.net/p/box2dflash/bugs/2/" rel="alternate"/><published>2007-11-27T05:32:07Z</published><updated>2007-11-27T05:32:07Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net59441c42f70c16acb2cbfa549a3ebbf964535035</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Line 254 reads:&lt;/p&gt;
&lt;p&gt;points[0] = w;&lt;/p&gt;
&lt;p&gt;Possible fix (as you've inlined vector operations):&lt;/p&gt;
&lt;p&gt;points[0] = new b2Vec2(wX, wY);&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Error in b2Distance</title><link href="https://sourceforge.net/p/box2dflash/bugs/1/" rel="alternate"/><published>2007-11-27T05:25:40Z</published><updated>2007-11-27T05:25:40Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net2b1b9e7b50c44aff31c2c1acd9c39a2ea6588691</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Line 235 reads:&lt;/p&gt;
&lt;p&gt;if (vSqr - b2Dot(vX * wX + vY * wY) &amp;lt;= 0.01 * vSqr) // or w in points&lt;/p&gt;
&lt;p&gt;Should read:&lt;/p&gt;
&lt;p&gt;if (vSqr -(vX * wX + vY * wY) &amp;lt;= 0.01 * vSqr) // or w in points&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>