Skip to content

Conversation

@ThierryBerger
Copy link
Contributor

@ThierryBerger ThierryBerger commented Feb 18, 2025

Embedding Real type in most popular types would allow to simplify a bit the signatures of the functions:

from:

pub fn cast_shapes(
    pos1: &Isometry<f32>,
    vel1: &Vector<f32>,
    g1: &dyn Shape,
    pos2: &Isometry<f32>,
    vel2: &Vector<f32>,
    g2: &dyn Shape,
    options: ShapeCastOptions,
) -> Result<Option<ShapeCastHit>, Unsupported>

to:

pub fn cast_shapes(
    pos1: &Isometry,
    vel1: &Vector,
    g1: &dyn Shape,
    pos2: &Isometry,
    vel2: &Vector,
    g2: &dyn Shape,
    options: ShapeCastOptions,
) -> Result<Option<ShapeCastHit>, Unsupported>

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.

1 participant