Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add glam swizzles traits to prelude (bevyengine#9387)
# 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.
- Loading branch information