diff --git a/rustdoc/game_logic/model/world_object/struct.ObjectCollider.html b/rustdoc/game_logic/model/world_object/struct.ObjectCollider.html index 9114554d..500cef57 100644 --- a/rustdoc/game_logic/model/world_object/struct.ObjectCollider.html +++ b/rustdoc/game_logic/model/world_object/struct.ObjectCollider.html @@ -2,10 +2,10 @@

Struct game_logic::model::world_object::ObjectCollider[][src]

pub struct ObjectCollider {
     pub position: Vector2<f32>,
-    pub size: Option<Vector2<f32>>,
+    pub size: Vector2<f32>,
 }
Expand description

Defines a collider in object space.

Fields

position: Vector2<f32>

Position, relative to the object’s center (north east is 1,1 south west is -1,-1)

-
size: Option<Vector2<f32>>

Possible sizing

+
size: Vector2<f32>

Possible sizing

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

diff --git a/rustdoc/game_logic/scenes/player_interaction/index.html b/rustdoc/game_logic/scenes/player_interaction/index.html index 79671d60..89758f3b 100644 --- a/rustdoc/game_logic/scenes/player_interaction/index.html +++ b/rustdoc/game_logic/scenes/player_interaction/index.html @@ -1,6 +1,6 @@ game_logic::scenes::player_interaction - Rust

Module game_logic::scenes::player_interaction[][src]

Expand description

This scene encompasses all of the game where the player can walk around.

+

Module player_interaction

Module game_logic::scenes::player_interaction[][src]

Expand description

This scene encompasses all of the game where the player can walk around.

Structs

\ No newline at end of file diff --git a/rustdoc/game_logic/scenes/player_interaction/struct.PlayableScene.html b/rustdoc/game_logic/scenes/player_interaction/struct.PlayableScene.html index 287f7b58..3b487d21 100644 --- a/rustdoc/game_logic/scenes/player_interaction/struct.PlayableScene.html +++ b/rustdoc/game_logic/scenes/player_interaction/struct.PlayableScene.html @@ -8,9 +8,9 @@ last_update: SystemTime, game_soundtrack: Music, world_colliders: Vec<ObjectCollider>, -}

Fields

has_updated_discord_rpc: boolplayer: Playerworld_map: MapRenderercamera: Camera2Dlast_update: SystemTimegame_soundtrack: Musicworld_colliders: Vec<ObjectCollider>

Implementations

Construct a new PlayableScene

+}

Fields

has_updated_discord_rpc: boolplayer: Playerworld_map: MapRenderercamera: Camera2Dlast_update: SystemTimegame_soundtrack: Musicworld_colliders: Vec<ObjectCollider>

Implementations

Construct a new PlayableScene

Handler for each frame

-

Trait Implementations

Formats the value using the given formatter. Read more

+

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

diff --git a/rustdoc/src/game_logic/model/world_object.rs.html b/rustdoc/src/game_logic/model/world_object.rs.html index 507866b9..8046c825 100644 --- a/rustdoc/src/game_logic/model/world_object.rs.html +++ b/rustdoc/src/game_logic/model/world_object.rs.html @@ -108,7 +108,7 @@ /// 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 diff --git a/rustdoc/src/game_logic/scenes/player_interaction.rs.html b/rustdoc/src/game_logic/scenes/player_interaction.rs.html index 75711024..742b567a 100644 --- a/rustdoc/src/game_logic/scenes/player_interaction.rs.html +++ b/rustdoc/src/game_logic/scenes/player_interaction.rs.html @@ -248,6 +248,7 @@ 246 247 248 +249
//! This scene encompasses all of the game where the player can walk around.
 
 use nalgebra as na;
@@ -410,6 +411,7 @@
         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