plop 0.0.1

(Science / Video Game) Physics engine for Cala
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
model::new() // Start building the model.
.t(&[ // Texture Coordinates for all faces
	[0.0, 0.0, 1.0, 1.0], // 4
	[0.0, 1.0, 1.0, 1.0], // 7
	[1.0, 1.0, 1.0, 1.0], // 6
	[1.0, 0.0, 1.0, 1.0], // 5
])
.v(&[ // Front
	[-0.5, -0.5, -0.5, 1.0], // 23
	[-0.5, 0.5, -0.5, 1.0], // 19
	[0.5, 0.5, -0.5, 1.0], // 17
	[0.5, -0.5, -0.5, 1.0], // 22
]).f()
.m(IDENTITY.r(vec3!(0.5 * PI, 0.0, 0.0))).f() // Top
.m(IDENTITY.r(vec3!(1.0 * PI, 0.0, 0.0))).f() // Back
.m(IDENTITY.r(vec3!(1.5 * PI, 0.0, 0.0))).f() // Bottom
.m(IDENTITY.r(vec3!(0.0, 0.5 * PI, 0.0))).f() // Right
.m(IDENTITY.r(vec3!(0.0, 1.5 * PI, 0.0))).f() // Left