Skip to content

Add 64bit support #47

Closed
Closed

Description

@Ughuuu

I integrated rapier and rapier-f64. Then I added salva, but now it doesn't build and salva only works with rapier, not rapier64(eg. features="rapier")
https://github.com/appsinacup/godot-rapier-2d
appsinacup/godot-rapier-physics#61

One solution could be to add same as for rapier, single or double builds, and then for feature add rapier or rapier-f64.

Activity

  1. Ughuuu commented on Oct 9, 2024

    @Ughuuu
    ContributorAuthor

    For this issue one should look at how rapier does it: https://github.com/dimforge/rapier
    And basically it needs in salva multiple packages exported, similar to how rapier has. So right now this exports salva2d and salva3d, it would need salva2d-f64 and salva3d-f64. Each of these would be defined in the Cargo.toml file and then there would be a define for the precision:

    So in the build directory of salva there would be 2 new folders, salva2d-f64 and salva3d-f64. Then in github workflows there needs to be automatic building (and deploying?) of the new packages.

    Example of how to use the f32 and f64 flags:

  2. Ughuuu commented on Jun 27, 2026

    @Ughuuu
    ContributorAuthor

    Also fixed by latest PR. #69 (aside for publishing to crates.io).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions