pub struct Portal {
pub id: PortalId,
pub origin: Vec3,
pub target: Vec3,
pub normal: Vec3,
pub extent: Vec2,
pub active: bool,
pub linked: Option<PortalId>,
}Expand description
A portal connects two points in space and renders the view from the other side.
Fields§
§id: PortalId§origin: Vec3§target: Vec3§normal: Vec3§extent: Vec2§active: bool§linked: Option<PortalId>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Portal
impl RefUnwindSafe for Portal
impl Send for Portal
impl Sync for Portal
impl Unpin for Portal
impl UnsafeUnpin for Portal
impl UnwindSafe for Portal
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