One other thing I forgot to mention. I compiled the Box2DX source code against the Silverlight framework to see if it would work.
It did, but required one small change to the code. "ICloneable" is used in Box2DX in one location and Silverlight apparently does not have this interface. As far as I can tell, Box2DX does not rely on the interface and I was able to remove the reference to it and compile fine.
Another option would be to create your own IColoneable interface and use that instead of the .Net framework version.
Would you be willing to either get rid of it or create your own version so Box2DX will compile without change against Silverlight?
Here is where it is used:
Code:
public class Bound : ICloneable
{
public bool IsLower { get { return (Value & (ushort)1) == (ushort)0; } }
public bool IsUpper { get { return (Value & (ushort)1) == (ushort)1; } }
public ushort Value;
public ushort ProxyId;
public ushort StabbingCount;
public object Clone()
{
Bound newBound = new Bound();
newBound.Value = this.Value;
newBound.ProxyId = this.ProxyId;
newBound.StabbingCount = this.StabbingCount;
return newBound;
}
}
Thanks,
-Jeff