Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Bevy 0.13 #315

Merged
merged 30 commits into from
Feb 20, 2024
Merged

Update to Bevy 0.13 #315

merged 30 commits into from
Feb 20, 2024

Commits on Nov 30, 2023

  1. Track Bevy main

    Jondolf committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    902dac0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d58220d View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2024

  1. Configuration menu
    Copy the full SHA
    6ac9ca8 View commit details
    Browse the repository at this point in the history
  2. Update to Bevy main

    Jondolf committed Jan 27, 2024
    Configuration menu
    Copy the full SHA
    5249a91 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2e9ff23 View commit details
    Browse the repository at this point in the history
  4. Fix deprecated methods

    Jondolf committed Jan 27, 2024
    Configuration menu
    Copy the full SHA
    97bfc17 View commit details
    Browse the repository at this point in the history
  5. Fix remaining compile errors

    Jondolf committed Jan 27, 2024
    Configuration menu
    Copy the full SHA
    723df2e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5ea291f View commit details
    Browse the repository at this point in the history
  7. Fix sensor example

    Jondolf committed Jan 27, 2024
    Configuration menu
    Copy the full SHA
    49c3a47 View commit details
    Browse the repository at this point in the history
  8. Use Bevy's arrow gizmo

    Jondolf committed Jan 27, 2024
    Configuration menu
    Copy the full SHA
    3d4cad4 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    1f6ade2 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    3080c7e View commit details
    Browse the repository at this point in the history
  11. Update itertools

    Jondolf committed Jan 27, 2024
    Configuration menu
    Copy the full SHA
    d3ef362 View commit details
    Browse the repository at this point in the history
  12. Fix lint warnings

    Jondolf committed Jan 27, 2024
    Configuration menu
    Copy the full SHA
    de625ff View commit details
    Browse the repository at this point in the history
  13. Revert IntoCollider addition

    Jondolf committed Jan 27, 2024
    Configuration menu
    Copy the full SHA
    2f883b7 View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2024

  1. Migrate EntityMapper changes

    Jondolf committed Jan 29, 2024
    Configuration menu
    Copy the full SHA
    73b17b0 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2024

  1. Fix render asset usage

    Jondolf committed Feb 2, 2024
    Configuration menu
    Copy the full SHA
    3658054 View commit details
    Browse the repository at this point in the history
  2. Remove apply_deferred

    Jondolf committed Feb 2, 2024
    Configuration menu
    Copy the full SHA
    bbd0b2b View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2024

  1. Colliders from primitives (#326)

    # Objective
    
    Support creating colliders from the new geometric primitives in Bevy 0.13.
    
    ## Solution
    
    Add an `IntoCollider` trait and implement it for primitives. For now, tori and conical frusta are not supported, as they aren't as trivial to implement.
    
    Some new collider shapes are also supported: ellipses and regular polygons. These are implemented using custom shapes, as Parry doesn't have them built-in.
    
    `Collider::ball` is now also `Collider::circle` in 2D and `Collider::sphere` in 3D. `Collider::cuboid` is `Collider::rectangle` in 2D. This makes the naming consistent with Bevy. 
    
    ---
    
    ## Migration Guide
    
    - Replace `Collider::ball` with `Collider::circle` in 2D and `Collider::sphere` in 3D
    - Replace `Collider::cuboid` with `Collider::rectangle` in 2D
    Jondolf authored Feb 18, 2024
    Configuration menu
    Copy the full SHA
    3e3c0bd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a6cb4ec View commit details
    Browse the repository at this point in the history
  3. Fix errors and lints

    Jondolf committed Feb 18, 2024
    Configuration menu
    Copy the full SHA
    c5d6071 View commit details
    Browse the repository at this point in the history
  4. Fix deprecations in examples

    Jondolf committed Feb 18, 2024
    Configuration menu
    Copy the full SHA
    66f0159 View commit details
    Browse the repository at this point in the history
  5. Make IntoCollider generic over collider, use impl Into<Collider>

    …for `ShapeCaster::new`
    Jondolf committed Feb 18, 2024
    Configuration menu
    Copy the full SHA
    5014565 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3871cba View commit details
    Browse the repository at this point in the history
  7. Use direction types in ray and shape casting APIs and add `RayCaster:…

    …:from_ray` (#329)
    
    # Objective
    
    Bevy 0.13 added the `Direction2d` and `Direction3d` types along with `Ray2d` and `Ray3d` types. The new direction types are a great fit for ray directions, as they guarantee that the direction is normalized. This avoids the potential footgun where unnormalized directions are actually treated like velocity, which affects the time of impact.
    
    Ray and shape casting APIs should use the direction types. It should also be possible to make a `RayCaster` from a ray conveniently.
    
    ## Solution
    
    Add `Ray` and `Dir` type aliases to support 2D and 3D, and use `Dir` for directions for `RayCaster`, `ShapeCaster`, and `SpatialQuery` methods. I also added a `RayCaster::from_ray` constructor.
    
    ---
    
    ## Migration Guide
    
    For spatial queries, replace `Vec2`/`Vec3` directions with `Direction2d`/`Direction3d`.
    
    ```rust
    // Before
    let caster = RayCaster::new(Vec3::ZERO, Vec3::X);
    
    // After
    let caster = RayCaster::new(Vec3::ZERO, Direction3d::X);
    ```
    Jondolf authored Feb 18, 2024
    Configuration menu
    Copy the full SHA
    c248ad5 View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2024

  1. Fix color in docs

    Jondolf committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    9a1465c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    02dc556 View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2024

  1. Configuration menu
    Copy the full SHA
    1dcd739 View commit details
    Browse the repository at this point in the history
  2. Fix force gizmo color

    Jondolf committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    1d86737 View commit details
    Browse the repository at this point in the history
  3. Update Parry and Nalgebra

    Jondolf committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    b5ada9b View commit details
    Browse the repository at this point in the history