bevy icon indicating copy to clipboard operation
bevy copied to clipboard

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

Open tim-blackbird opened this issue 3 years ago • 1 comments
trafficstars

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.

tim-blackbird avatar Jul 16 '22 16:07 tim-blackbird

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