bevy icon indicating copy to clipboard operation
bevy copied to clipboard

Add associated constant `IDENTITY` to `Transform` and friends.

Open irate-devil opened this issue 1 year ago • 1 comments

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.

irate-devil avatar Jul 16 '22 16:07 irate-devil

while marking as deprecated is nice, at this stage of Bevy I would prefer to break directly

mockersf avatar Aug 01 '22 17:08 mockersf

bors r+

mockersf avatar Aug 30 '22 21:08 mockersf