Box2D Forums

It is currently Wed May 22, 2013 2:14 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Jul 07, 2011 7:21 am 
Offline

Joined: Tue Dec 14, 2010 10:38 am
Posts: 18
I get this error when I remove a body that my 'hero' is in contact with. I am removing via removeChild().

Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
   at misc::Util$/localizeMatrix()[/source/misc/Util.as:210]
   at wck::BodyShape/syncTransform()[/source/wck/BodyShape.as:1302]
   at wck::BodyShape/updateTween()[/source/wck/BodyShape.as:1322]
   at flash.events::EventDispatcher/dispatchEventFunction()
   at flash.events::EventDispatcher/dispatchEvent()
   at Box2DAS.Common::b2EventDispatcher/dispatchEvent()[/source/Box2DAS/Common/b2EventDispatcher.as:27]
   at Box2DAS.Dynamics::b2World/Step()[/source/Box2DAS/Dynamics/b2World.as:158]
   at wck::World/step()[/source/wck/World.as:194]


Top
 Profile  
 
PostPosted: Fri Jul 08, 2011 8:00 am 
Offline

Joined: Fri Dec 14, 2007 8:07 pm
Posts: 913
When are you calling removeChild()? I need more context as to what is going on to figure this one out. I saw you posted in that other mouse joint related thread but this looks unrelated.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group