Yeah, for what its worth, this is the most common error in both Silverlight + WPF versions.
There is an algorithm in BoundaryHelper.cs that determines the outline of an object by "tracing" its path. This path is then used as the shape (Geometry) of the PhysicsObject.
But the algorithm is picky. Here are a few tips:
- make sure that the Width and Height attributes for the element completely cover its contents. That's what the algorithm uses as the bounds of the boundary detection.
- if you are using PNG images, make sure that they have a "clean" outline and there are no stray pixels around their border. I wouldn't use JPG at all because they can be too pixelated.
- Keep everything in a Canvas and stay away from Grid layouts. Keep the Canvas at position 0,0 in your layout.
Hope this helps.