Skip to content

Instantly share code, notes, and snippets.

View jordanhalase's full-sized avatar

Jordan Halase jordanhalase

View GitHub Profile
@jordanhalase
jordanhalase / bevy_fixed_lerp.rs
Created April 17, 2024 02:08
Linear interpolation with a fixed timestep in Bevy v0.13.2 example
use bevy::prelude::*;
const PLAYER_SPEED: f32 = 500.0;
const PLAYER_SIZE: Vec3 = Vec3::new(32.0, 32.0, 0.0);
fn main() {
App::new()
.add_plugins(DefaultPlugins)
//.insert_resource(Time::<Fixed>::from_seconds(0.125)) // Test different timesteps here