bevy
bevy copied to clipboard
Add associated constant `IDENTITY` to `Transform` and friends.
Objective
Since identity
is a const fn that takes no arguments it seems logical to make it an associated constant.
This is also more in line with types from glam (eg. Quat::IDENTITY
).
Migration Guide
The method identity()
on Transform
, GlobalTransform
and TransformBundle
has been deprecated.
Use the associated constant IDENTITY
instead.
while marking as deprecated is nice, at this stage of Bevy I would prefer to break directly
bors r+
Pull request successfully merged into main.
Build succeeded: