idanarye / bevy-tnua

A floating character controller for Bevy
https://crates.io/crates/bevy-tnua
Apache License 2.0
214 stars 14 forks source link

Potential f64 support #46

Closed vpochapuis closed 6 months ago

vpochapuis commented 7 months ago

Hello! Thank you for providing a character controller crate! After seeing this crate for the first time and trying to integrate with a bevy/xpbd setup I had, i came to encounter some compilation issues and found that it seems the crate used f32 as default from xpbd and rapier. Hence I was wondering about this issue:

What

As both Rapier and XPBD provide f64 precision alternative features(xpbd)/crates(rapier). Would it be possible to adapt this crate to take advantages of those?

Why

idanarye commented 7 months ago

Rapier has an f64 version, but bevy_rapier doesn't. bevy_xpbd (which is the main XPBD crate) does support it, so it is possible for XPBD.