We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0fd32d commit d60f522Copy full SHA for d60f522
2 files changed
crates/blue_engine_core/src/engine.rs
@@ -145,8 +145,6 @@ pub struct Engine {
145
pub signals: SignalStorage,
146
147
/// holds the update_loop function
148
- ///
149
- /// #### USED INTERNALLY
150
pub update_loop: Option<Box<dyn 'static + FnMut(&mut Engine)>>,
151
152
/// Simplified input events
crates/blue_engine_core/src/objects/transformation.rs
@@ -128,7 +128,7 @@ impl Object {
128
/// Sets the position of the object in 3D space relative to the window
129
pub fn set_position(&mut self, new_pos: impl Into<Vector3>) -> &mut Self {
130
let new_pos = new_pos.into();
131
- self.position = new_pos;
+ self.position = Vector3::new(0f32, 0f32, 0f32).into();
132
self.translation_matrix = Matrix4::IDENTITY;
133
134
self.translate(new_pos)
0 commit comments