Open
Conversation
b96dc51 to
fe138b5
Compare
ThierryBerger
commented
Jun 20, 2025
ThierryBerger
commented
Jul 4, 2025
Comparison ResultUserguide diff introduced by this PR
diff -r /tmp/target_generated/geometric_queries.mdx /tmp/pr_generated/geometric_queries.mdx
432,436c432,436
< | `world1` | The contact point on the first object expressed in the absolute coordinate system. |
< | `world2` | The contact point on the second object expressed in the absolute coordinate system. |
< | `normal1` | { /* TODO: it's not always in world space... */} The contact normal expressed in the absolute coordinate system. Points toward the first object's exterior. |
< | `normal2` | The contact normal expressed in the absolute coordinate system. Points toward the second object's exterior. If these contact data are expressed in world-space, this normal is equal to -normal1. |
< | `depth` | The penetration depth of this contact. |
---
> | `point1` | Position of the contact on the first object. |
> | `point2` | Position of the contact on the second object. |
> | `normal1` | Contact normal, pointing towards the exterior of the first shape. |
> | `normal2` | Contact normal, pointing towards the exterior of the second shape. If these contact data are expressed in world-space, this normal is equal to `-normal1`. |
> | `dist` | The penetration depth of this contact. If this is negative, this contact represents a penetration. |
437a438
> :::warning
439,440c440,446
< Here, _absolute coordinate system_ is the set of axes that are not relative
< to any object. The last `depth` field requires some details. Sometimes, the
---
> In context of `query::contact`, `point1` and `point2` are expressed in _absolute coordinates_: which are not relative
> to any object. But when using lower level functions like `contact_cuboid_cuboid`
> (typically functions taking a `pos12: &Isometry<f32>`), `point1` and `point2` are expressed in _local coordinates_ to each `Shape` arguments.
>
> :::
>
> The last `dist` field requires some details. Sometimes, the
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.