Skip to content

Commit d60f522

Browse files
committed
fix: set_position and simple_input. Also added raw_input for finer usage
1 parent f0fd32d commit d60f522

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

crates/blue_engine_core/src/engine.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,6 @@ pub struct Engine {
145145
pub signals: SignalStorage,
146146

147147
/// holds the update_loop function
148-
///
149-
/// #### USED INTERNALLY
150148
pub update_loop: Option<Box<dyn 'static + FnMut(&mut Engine)>>,
151149

152150
/// Simplified input events

crates/blue_engine_core/src/objects/transformation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ impl Object {
128128
/// Sets the position of the object in 3D space relative to the window
129129
pub fn set_position(&mut self, new_pos: impl Into<Vector3>) -> &mut Self {
130130
let new_pos = new_pos.into();
131-
self.position = new_pos;
131+
self.position = Vector3::new(0f32, 0f32, 0f32).into();
132132
self.translation_matrix = Matrix4::IDENTITY;
133133

134134
self.translate(new_pos)

0 commit comments

Comments
 (0)