Comments (6)
Might be better to use a private pair of orthonormal vectors. Would downgrade normal to a function, so would be a breaking change.
from bevy.
Might be better to use a private pair of orthonormal vectors. Would downgrade normal to a function, so would be a breaking change.
I like this idea.
from bevy.
@mweatherley, I have a question though. If Plane3d represents a "rectangular section of an infinite plane", then what does Plane2d represent?
pub struct Plane3d {
/// The normal of the plane. The plane will be placed perpendicular to this direction
pub normal: Dir3,
/// Half of the width and height of the plane
pub half_size: Vec2,
}
pub struct Plane2d {
/// The normal of the plane. The plane will be placed perpendicular to this direction
pub normal: Dir2,
}
I believe these two things should be pushed back to the drawing board.
from bevy.
I think plane2d is actually an infinite line iirc. Yeah, the situation is not great.
from bevy.
Honestly, I'm not sure we even need Plane2d
since we already have Line2d
. The only real difference is just that they're perpendicular to one another (the plane has a normal and the line has a direction).
from bevy.
Good point. The only thing Line2d
is missing is a right-handed normal() -> Dir2
method.
from bevy.
Related Issues (20)
- Clippy complains when building with wasm32.
- Gizmos always draw on 2d sprites, z value and depth_bias neither works
- Gizmos::line() with a transparent color display weird
- WireFrameColor component ignored HOT 1
- Words that are wider than its container are not wrapped HOT 2
- Android segfaults since `MeshUniforms` generation on the GPU HOT 7
- `check-missing-*-in-docs` job does not install Rust HOT 1
- Improve scene serialized format HOT 16
- cargo run --features bevy/dynamic_linking does not worK HOT 2
- 0.13.2 - failed to run custom build command for libudev-sys v0.1.4 (fedora) HOT 6
- Mutable Animation Clips HOT 6
- File watcher + asset processor get confused when blender saves a new file version HOT 3
- Mesh is missing requested attribute: Vertex_Normal error HOT 1
- Module docs don't appear in monolithic docs.rs page HOT 2
- Add tvOS support HOT 1
- `TextLayoutInfo` doesn't contain every processed glyph HOT 3
- `App::configure_sets` should work the same way as `.before` and `.after` HOT 4
- 0.13 error (in desc) but v 0.12 works HOT 7
- Time is faster for unfocused windows HOT 2
- User-mode data execution prevention (DEP) violation when loading Dynamic Plugins HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bevy.