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

wip parry_to_bevy_mesh #628

Merged
merged 15 commits into from
Feb 3, 2025
Merged

wip parry_to_bevy_mesh #628

merged 15 commits into from
Feb 3, 2025

Conversation

Vrixyz
Copy link
Contributor

@Vrixyz Vrixyz commented Jan 15, 2025

Discord discussion https://discordapp.com/channels/507548572338880513/748627261384556715/1314267962668220447

⚠️ considering these shapes out of scope for this PR:

  • Linestrip
  • rounded
  • Custom

⚠️ Cuboid has no builder exposed on bevy yet (see bevyengine/bevy#17475)

image

@Vrixyz Vrixyz force-pushed the mesh_parry_to_bevy branch from 596f9ea to 9dfe1f5 Compare January 16, 2025 11:24
}
#[cfg(feature = "dim2")]
rapier::prelude::TypedShape::RoundConvexPolygon(round_shape) => {
// FIXME: parry doesn't have easy to use functions to convert RoundShapes to a mesh.
Copy link
Contributor Author

@Vrixyz Vrixyz Jan 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's missing for to_trimesh module in parry

github-merge-queue bot pushed a commit to bevyengine/bevy that referenced this pull request Jan 23, 2025
# Objective

Make `Mesh::merge` more resilient to use.

Currently, it's difficult to make sure `Mesh::merge` will not panic
(we'd have to check if all attributes are compatible).

- I'd appreciate it for utility function to convert different mesh
representations such as:
dimforge/bevy_rapier#628.

## Solution

- Make `Mesh::merge` return a `Result`.

## Testing

- It builds

## Migration Guide

- `Mesh::merge` now returns a `Result<(), MeshMergeError>`.

---------

Co-authored-by: Alice Cecile <[email protected]>
Co-authored-by: Greeble <[email protected]>
Co-authored-by: Benjamin Brienen <[email protected]>
@Vrixyz Vrixyz marked this pull request as ready for review February 3, 2025 15:31
@Vrixyz Vrixyz merged commit a4e9343 into dimforge:master Feb 3, 2025
4 checks passed
mrchantey pushed a commit to mrchantey/bevy that referenced this pull request Feb 4, 2025
# Objective

Make `Mesh::merge` more resilient to use.

Currently, it's difficult to make sure `Mesh::merge` will not panic
(we'd have to check if all attributes are compatible).

- I'd appreciate it for utility function to convert different mesh
representations such as:
dimforge/bevy_rapier#628.

## Solution

- Make `Mesh::merge` return a `Result`.

## Testing

- It builds

## Migration Guide

- `Mesh::merge` now returns a `Result<(), MeshMergeError>`.

---------

Co-authored-by: Alice Cecile <[email protected]>
Co-authored-by: Greeble <[email protected]>
Co-authored-by: Benjamin Brienen <[email protected]>
@@ -6,6 +6,7 @@

- Added optional feature `picking-backend` to support bevy_picking.
- See `picking_backend` module documentation for more details.
- Added `geometry::to_bevy_mesh` module behind the feature `to-bevy-mesh` to help with converting parry shapes into bevy meshes.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add limitations clearly + link PR

Vrixyz added a commit to Vrixyz/bevy_rapier that referenced this pull request Feb 18, 2025
Vrixyz added a commit that referenced this pull request Feb 18, 2025
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

Successfully merging this pull request may close these issues.

2 participants