Initial commit
This commit is contained in:
6
physics.aura
Normal file
6
physics.aura
Normal file
@@ -0,0 +1,6 @@
|
||||
type PositiveTime = f32{t | t > 0.0}
|
||||
|
||||
pure fn calculate_new_position(initial_x: f32, v: f32, dt: PositiveTime) -> f32:
|
||||
let displacement = v * dt
|
||||
let new_x = initial_x + displacement
|
||||
return new_x
|
||||
Reference in New Issue
Block a user