pub struct SpatialRef { /* private fields */ }Expand description
A reference to a node with spatial attributes (position, rotation, scale).
Equivalent to a Transform in Unity, Spatial in Godot, etc.
Implementations§
Source§impl SpatialRef
impl SpatialRef
pub async fn import(client: &Arc<ClientHandle>, uid: u64) -> NodeResult<Self>
Trait Implementations§
Source§impl Clone for SpatialRef
impl Clone for SpatialRef
Source§fn clone(&self) -> SpatialRef
fn clone(&self) -> SpatialRef
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 moreSource§impl Debug for SpatialRef
impl Debug for SpatialRef
Source§impl Hash for SpatialRef
impl Hash for SpatialRef
Source§impl NodeType for SpatialRef
impl NodeType for SpatialRef
Source§impl PartialEq for SpatialRef
impl PartialEq for SpatialRef
Source§impl<Ctx: ClientQueryContext> Queryable<Ctx> for SpatialRef
impl<Ctx: ClientQueryContext> Queryable<Ctx> for SpatialRef
async fn try_new( connection: &Connection, ctx: &Arc<Ctx>, object: &ObjectInfo, contains_interface: &(impl Fn(&InterfaceName<'_>) -> bool + Send + Sync), ) -> Option<Self>
Source§impl Serialize for SpatialRef
impl Serialize for SpatialRef
Source§impl SpatialRefAspect for SpatialRef
impl SpatialRefAspect for SpatialRef
Source§async fn get_local_bounding_box(&self) -> NodeResult<BoundingBox>
async fn get_local_bounding_box(&self) -> NodeResult<BoundingBox>
Get the bounding box of this spatial and its children relative to another spatial
Source§async fn get_relative_bounding_box(
&self,
relative_to: &impl SpatialRefAspect,
) -> NodeResult<BoundingBox>
async fn get_relative_bounding_box( &self, relative_to: &impl SpatialRefAspect, ) -> NodeResult<BoundingBox>
Get the bounding box of this spatial and its children relative to itself
Source§async fn get_transform(
&self,
relative_to: &impl SpatialRefAspect,
) -> NodeResult<Transform>
async fn get_transform( &self, relative_to: &impl SpatialRefAspect, ) -> NodeResult<Transform>
Get the transform relative to some other spatial node.
impl Eq for SpatialRef
Auto Trait Implementations§
impl Freeze for SpatialRef
impl !RefUnwindSafe for SpatialRef
impl Send for SpatialRef
impl Sync for SpatialRef
impl Unpin for SpatialRef
impl !UnwindSafe for SpatialRef
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