mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 04:33:37 +00:00
37915e1d93
# Objective Add possibility to use the glam's swizzles traits without having to manually import them. ```diff use bevy::prelude::*; - use bevy::math::Vec3Swizzles; fn foo(x: Vec3) { let y: Vec2 = x.xy(); } ``` ## Solution Add the swizzles traits to bevy's prelude. --- ## Changelog - `Vec2Swizzles`, `Vec3Swizzles` and `Vec4Swizzles` are now part of the prelude. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |