Skip to content

Commit

Permalink
Fixes a bunch of examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dman-os committed Dec 27, 2021
1 parent 1d4f334 commit 78e0a92
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ default = [
"vorbis",
"x11",
"filesystem_watcher",
"xform_64"
# "xform_64"
]

# Force dynamic linking, which improves iterative compile times
Expand Down
20 changes: 20 additions & 0 deletions crates/bevy_transform/src/components/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,26 @@ mod xform_64 {
}
}

impl F64Convert for Transform64 {
type F64Ver = Self;

#[inline]
fn f64(&self) -> Self::F64Ver {
*self
}
}
impl F32Convert for Transform64 {
type F32Ver = super::Transform32;

fn f32(&self) -> Self::F32Ver {
super::Transform32 {
translation: self.translation.f32(),
rotation: self.rotation.f32(),
scale: self.scale.f32(),
}
}
}

/// Describe the position of an entity relative to the reference frame.
///
/// * To place or move an entity, you should set its [`Transform`].
Expand Down

0 comments on commit 78e0a92

Please sign in to comment.