Skip to content

Error when getting position of CircleShape #16

@Peterculazh

Description

@Peterculazh

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions