byte-engine 0.1.0

A composable Rust game engine focused on graphics, input, audio, physics, and retained UI.
1
2
3
4
5
6
7
8
9
10
11
use math::Quaternion;

/// The [`Orientable`] trait exposes world-space rotation to cameras, lights,
/// renderables, and physics systems.
///
/// Types backed by [`crate::gameplay::transform::Transform`] should implement
/// [`crate::space::Transformable`] and use its blanket implementation.
pub trait Orientable {
	fn orientation(&self) -> Quaternion;
	fn set_orientation(&mut self, orientation: Quaternion);
}