How to draw Paths correctly?

Feb 13, 2011 at 4:20 PM

I'm sorry, I don't know much about Expression Blend. When I draw a path, sometimes the simulation works perfectly with it, and sometimes it seems to 'draw a box' around my path and the shape acts like a rectangle instead of the path I drew.



John Simmons


Feb 13, 2011 at 4:42 PM

Hi John,

The current path detection algorithm works best with Convex polygons. If you set IsDebugMode to true on the PhysicsControllerBehavior, you can see what boundaries are determined by the detection algorithm. In some cases, you may need to create several separate objects instead of one large object (place these into a UserControl and then re-use the UserControl as necessary. Hopefull in the future I can add in more boundary detection algorithms to make it better.

Hope this helps.

Feb 13, 2011 at 8:46 PM

Thanks, I'll try using Convex polygons more. Thanks for responding quickly.