File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ [package ]
2
+ name = " bevy_geometry"
3
+ version = " 0.1.0"
4
+ authors = [" Aevyrie Roessler <aevyrie@gmail.com>" ]
5
+ edition = " 2018"
6
+
7
+ # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
8
+
9
+ [dependencies ]
10
+ bevy_math = { path = " ../bevy_math" , version = " 0.4.0" }
Original file line number Diff line number Diff line change
1
+ use bevy_math:: { Quat , Vec3 } ;
2
+
3
+ pub trait Primitive3d { }
4
+
5
+ pub struct Sphere {
6
+ pub origin : Vec3 ,
7
+ pub radius : f32 ,
8
+ }
9
+
10
+ pub struct Box {
11
+ pub maximums : Vec3 ,
12
+ pub minimums : Vec3 ,
13
+ pub orientation : Quat ,
14
+ }
15
+
16
+ pub struct AxisAlignedBox {
17
+ pub maximums : Vec3 ,
18
+ pub minimums : Vec3 ,
19
+ }
20
+
21
+ pub struct Plane {
22
+ pub point : Vec3 ,
23
+ pub normal : Vec3 ,
24
+ }
You can’t perform that action at this time.
0 commit comments