Skip to content
This repository was archived by the owner on Nov 29, 2022. It is now read-only.

Make tuple fields on ColliderHandle and RigidBodyHandle pub, or provide accessors? #175

Answered by jcornaz
edisno asked this question in Q&A
Discussion options

You must be logged in to vote

Hi.

There is a conversion available: https://docs.rs/heron/1.0.1-rc.1/heron/rapier_plugin/struct.ColliderHandle.html#impl-IntoRapier%3CColliderHandle%3E-1

let rapier_handle: rapier3d::ColliderHandle = heron_handle.into_rapier();

I cannot make the inner field directly public, nor can i implement Deref because the actual rapier type can change depending on the feature flags used. (2d or 3d)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by edisno
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #174 on January 21, 2022 14:46.