Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Safe/Unsafe Fraction] Investigate failing test where safe/unsafe fraction doesn't match #21

Open
Ughuuu opened this issue Jul 19, 2023 · 0 comments

Comments

@Ughuuu
Copy link
Contributor

Ughuuu commented Jul 19, 2023

Failing test
DirectSpaceState2D | testing [cast_motion] from [get_world_2d().direct_space_state] > Can collide with Body

Test Description:

I have 2 shapes, shape_A and shape_B.
shape_A has motion 360.
shape_A is located at b2Vec2(5.76, 3.24)
shape_B motion 0.
shape_B is located at b2Vec2(11.52, 3.24)
tMax is 1.

After calling timeOfImpact, I find t = 0.014
Distance that shapeA traveled is is 5.05

After calling b2Distance at moment of impact, I get distance between two shapes = 11.57

[safe, unsafe]
[0.0126953125, 0.01416015625] - godot2d
[0.01255518198013, 0.01404166780412] - box2d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant