bevy/examples/mobile
woodroww 1bd390806f added subdivisions to shape::Plane (#7546)
# Objective

There was issue #191 requesting subdivisions on the shape::Plane.
I also could have used this recently. I then write the solution.

Fixes  #191

## Solution

I changed the shape::Plane to include subdivisions field and the code to create the subdivisions. I don't know how people are counting subdivisions so as I put in the doc comments 0 subdivisions results in the original geometry of the Plane.
Greater then 0 results in the number of lines dividing the plane.

I didn't know if it would be better to create a new struct that implemented this feature, say SubdivisionPlane or change Plane. I decided on changing Plane as that was what the original issue was.

It would be trivial to alter this to use another struct instead of altering Plane.
The issues of migration, although small, would be eliminated if a new struct was implemented.
 
## Changelog
### Added
Added subdivisions field to shape::Plane

## Migration Guide
All the examples needed to be updated to initalize the subdivisions field.
Also there were two tests in tests/window that need to be updated.

A user would have to update all their uses of shape::Plane to initalize the subdivisions field.
2023-02-13 18:20:20 +00:00
..
bevy_mobile_example.xcodeproj IOS, Android... same thing (#7493) 2023-02-06 18:08:49 +00:00
ios-src IOS, Android... same thing (#7493) 2023-02-06 18:08:49 +00:00
src added subdivisions to shape::Plane (#7546) 2023-02-13 18:20:20 +00:00
.gitignore IOS, Android... same thing (#7493) 2023-02-06 18:08:49 +00:00
build_rust_deps.sh IOS, Android... same thing (#7493) 2023-02-06 18:08:49 +00:00
Cargo.toml IOS, Android... same thing (#7493) 2023-02-06 18:08:49 +00:00
Makefile IOS, Android... same thing (#7493) 2023-02-06 18:08:49 +00:00