pub struct SelfPlanet;Expand description
Phantom marker for “this entity’s own planet” — used by ECS adapters
whose per-entity components carry PlanetFixed<P> phantoms but whose
planet identity is determined at runtime by the entity itself.
Planet-side analog of SelfRef (which serves the same role for
Vehicle-parameterized frames). Use when wrapping a per-entity
rotation Component such as PlanetFixedRotationC whose Bevy entity
already carries a PlanetC discriminator — the typed FrameTransform
inside the Component encodes the direction (RootInertial → PlanetFixed)
while the planet identity stays at the entity level.
Trait Implementations§
Source§impl Clone for SelfPlanet
impl Clone for SelfPlanet
Source§fn clone(&self) -> SelfPlanet
fn clone(&self) -> SelfPlanet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SelfPlanet
impl Debug for SelfPlanet
Source§impl Planet for SelfPlanet
impl Planet for SelfPlanet
impl Copy for SelfPlanet
Auto Trait Implementations§
impl Freeze for SelfPlanet
impl RefUnwindSafe for SelfPlanet
impl Send for SelfPlanet
impl Sync for SelfPlanet
impl Unpin for SelfPlanet
impl UnsafeUnpin for SelfPlanet
impl UnwindSafe for SelfPlanet
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