Fix size issue

This commit is contained in:
Evan Pratten 2022-04-03 15:18:00 -04:00
parent bc215249a4
commit 4f159579ab
2 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,7 @@ pub struct ObjectCollider {
/// Position, relative to the object's center (north east is 1,1 south west is -1,-1)
pub position: na::Vector2<f32>,
/// Possible sizing
pub size: Option<na::Vector2<f32>>,
pub size: na::Vector2<f32>,
}
// Handy aliases

View File

@ -160,6 +160,7 @@ impl PlayableScene {
let current_temperature = self.world_map.sample_temperature_at(player.position);
let map_size = self.world_map.get_map_size();
// TODO: You can access the colission list with: self.world_colliders
// like this: self.world_colliders[0].size.x;
// Get input direction components
let h_axis = raylib.is_key_down(KeyboardKey::KEY_D) as i8