Hi there, <img src="smileys/smiley1.gif" border="0" align="middle" />
i found a small bug when I use the enable/disable collision feature. I'd like to put my capx, but it's my entire project, so i'll put a small capx example if necessary (but maybe the answer to shis problem is obvious, so...). The bug appears when I try to restart my layout on runtime (and it is caused by the enab/disab feature because I tried without, and it works well).
Steps to reproduce :
I have 2 physic objects on my scene, a "ship" and a "ghost".
In my event sheet, in my "on start layout" I do this :
1- destroy the ghost,previously drag and dropped in my scene
2 - create the ghost on my main layer, in x :-10, y :-10
3- disable its collision with another object called "ship" (the ship is drag and dropped in my scene)
4 - set the ghost to 0?
5 - make it immovable
Later in my game, when I press a keyboard touch, the ghost is placed on my ship, put it in movable, and projected with an impulse, and the ghost perfectly ignore the ship collision (the ghost is a "trajectory preview").
But : when i restart my game in runtime (reset layout), the game freezes. On the Chrome output, I have the following error :
<font color=red>Physics_behavior.js:1593Uncaught TypeError: Cannot call method 'add' of undefined</font>
I'm a bit familiar with programming, but I don't understand this.
Tell me if my example is not clear enough, i'll make a special capx to illustrate.
My config : windows 7, chrome 17, 64bits and Canvas 2D only.