Error when getting position of CircleShape
Hello, found this issue when I were playing with shapes and getting it position.
For start I were using b2::CircleShape::new without passing Vec2 and radius, which I thought was a problem of crash, but once I used new_with() with Vec2 and radius, nothing changes. I have feeling that problem with getting position of CircleShape itself.
Error: process didn't exit successfully: 'target\debug\examples\samples.exe' (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)
Example:
let test_circle_shape = b2::CircleShape::new_with(b2::Vec2{x: -3., y: 0.}, 3.0);
test_circle_shape.position();
You might run it and it will crash immediately.
I think that this might be an instance of #3, since CircleShape::position has signature pub fn position(&self) -> Vec2, returning a struct by value. Looking at your error message it seems like you are running on Windows? We could try to run this on Linux (where I expect it to work).