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

parry3d::query::contact #315

Open
Thomaswang0822 opened this issue Feb 15, 2025 · 0 comments
Open

parry3d::query::contact #315

Thomaswang0822 opened this issue Feb 15, 2025 · 0 comments

Comments

@Thomaswang0822
Copy link

Thomaswang0822 commented Feb 15, 2025

For the following 2 boxes, they touch on plane x=1

use nalgebra::Vector3 as v3;

let box1 = Cuboid::new(v3::new(0.5, 0.5, 0.5));
let pos1 = Isometry3::translation(0.5, 0.5, 0.5);
let pos2 = Isometry3::translation(1.5, 0.5, 0.5);
let exp_contact = contact(&pos1, &box1, &pos2, &box1, 0.0).unwrap().unwrap();

assert!(true == false, "pt1: {:?}, pt2:{:?}", exp_contact.point1, exp_contact.point2);

They are pt1: [0.5, 0.5, 0.5], pt2:[0.5, 0.5, 0.5], definitely wrong

And normal2 is [0.0, -1.0, 0.0], which I doubt is also wrong.

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