- Added
Coordinate
trait, to define useful units for 2D coordinates.- See
DiscreteCoordinate
trait for additional specialized methods and premade types for square and hex grids
- See
- Added
Position<C>
, a 2-dimensional coordinate type - Added
Direction
(a normalizedVec2
) andRotation
(an angle from midnight) to make it easier to work with rotations in 2D- See the
Orientation
trait for many convenience methods - See the
DirectionPartitioning
trait for methods and types for converting analog inputs into discrete outcomes
- See the
- Add
Scale<C>
, a relative, uniform-scaling measure of 2D entity size. - Added
TwoDBundle
,LeafwingSpriteBundle
andTwoDPlugin
for working with 2D geometry within Bevy and synchronizing it withTransform
- Added
AxisAlignedBoundingBox
andOrientedBoundingBox
for simple collision checking and clamping in 2D - Added basic kinematics: see the
Velocity
,Acceleration
,AngularVelocity
andAngularAcceleration
types for detail - Added screen-space / world-space conversion methods on the
Positionlike
trait - Add
TwoDPlugin
,TwoDBundle
andTwoDObjectBundle
for conveniently working with these types inbevy