dimforge / dimforge/bevy_rapier

Serializing Colliders

Open
#363 3 comments 0 reactions 0 assignees View on GitHub
A-Geometry A-Integration D-Medium P-Medium question S-not-started
Dominant language
Rust
Stars
1.6k
Forks
282
PR merge metrics
No merged PRs in 30d

Description

I'm creating a game with a level editor that generates colliders from a png images. I have my own algorithm to generate a polygon from a png. I was glad to find the function Collider::convex_decomposition, as it is exactly what I need. To save time and also to save custom colliders (created in my own editor) to a file I looked at how to serialize rapier colliders. The suggested method to do, is to use the Reflect trait, but it seems that for the Collider struct, Reflect isn't yet implemented (there is a "TODO" in the source code). This has been the case for a while now (last time I checked was in autumn). Are there any plans for implementing this? It seems like quite an essential feature.

EDIT: Is there a workaround for this?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.