I just want to add a ellipse with mass 0.5 so it drops and floats on the water and this just realtime on a button press (Water is already added and one ball too, the only one which is working fine, the same with all stuff I create in the constructor).
However, no matter which tutorial or post i follow here, I either keep getting errors (Like
Could not determine the outline of UIElement Ball. Could not find a point within its boundaries.) or it doesn't do anything at all.
I changed the LayoutRoot to Canvas, Add Ellipse and than add Physics Object to it (Doesn't matter if I add it on the Ellipse or Canvas, both don't work). All like the tutorials tell me. When following the blog post it's just a constant rain of errors.
Than I found something like AddPhysicsBody(Ball.LayoutRoot) or just AddPhysicsBody(Ball), but they don't effect anything at all, even if I set IsStatic to true it still falls down and no matter what I change here it doesn't work.
Could do with some help, tried almost everything here already, including giving everything a name and some other workarounds but none work!
And as far as I can see I'm not the only one having troubles so some more information on this would be extremely useful.
Something else I miss is how to add a force to a ball, like throwing it, there is a Force thing but I have no idea how to add it.