pub struct SceneTransforms {
pub local: Vec<Transform>,
pub world: Vec<GlobalTransform>,
pub dirty: Vec<bool>,
}Expand description
Per-entity transform storage (SoA layout).
Fields§
§local: Vec<Transform>Local-space transforms (TRS).
world: Vec<GlobalTransform>World-space transforms (4x4 matrices).
dirty: Vec<bool>Dirty flags — set when local transform changes.
Implementations§
Source§impl SceneTransforms
impl SceneTransforms
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Create with pre-allocated capacity. All transforms start at identity.
Sourcepub fn mark_dirty(&mut self, entity: u32)
pub fn mark_dirty(&mut self, entity: u32)
Mark an entity’s transform as dirty (needs world recalculation).
Sourcepub fn propagate_from_roots(&mut self, hierarchy: &SceneHierarchy)
pub fn propagate_from_roots(&mut self, hierarchy: &SceneHierarchy)
Propagate transforms from roots through hierarchy. BFS: for each root, compute world = local.to_matrix(). For each child, compute world = parent_world * child_local.
Trait Implementations§
Source§impl Clone for SceneTransforms
impl Clone for SceneTransforms
Source§fn clone(&self) -> SceneTransforms
fn clone(&self) -> SceneTransforms
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SceneTransforms
impl RefUnwindSafe for SceneTransforms
impl Send for SceneTransforms
impl Sync for SceneTransforms
impl Unpin for SceneTransforms
impl UnsafeUnpin for SceneTransforms
impl UnwindSafe for SceneTransforms
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more