We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 557c31a commit e2fd3d2Copy full SHA for e2fd3d2
crates/bevy_geometry/src/lib.rs
@@ -2,22 +2,26 @@ use bevy_math::{Quat, Vec3};
2
3
pub trait Primitive3d {}
4
5
+#[derive(Copy, Clone, PartialEq, Debug)]
6
pub struct Sphere {
7
pub origin: Vec3,
8
pub radius: f32,
9
}
10
11
12
pub struct Box {
13
pub maximums: Vec3,
14
pub minimums: Vec3,
15
pub orientation: Quat,
16
17
18
19
pub struct AxisAlignedBox {
20
21
22
23
24
25
pub struct Plane {
26
pub point: Vec3,
27
pub normal: Vec3,
0 commit comments