13 lines
162 B
PSL
13 lines
162 B
PSL
struct vec2f {
|
|
x: f32
|
|
y: f32
|
|
}
|
|
|
|
struct body {
|
|
position: vec2f
|
|
rotation: f32
|
|
}
|
|
|
|
func move_x(b: body mut*, delta: f32) {
|
|
b.position.x = b.position.x + delta
|
|
}
|