pub struct Attachment {
pub rigid_body: Url,
pub transform: Vec<RigidTransform>,
pub extra: Vec<Extra>,
}
Expand description
Defines an attachment frame, to a rigid body or a node, within a rigid constraint.
Fields§
§rigid_body: Url
A URI reference to a RigidBody
or Node
. This must refer to a
RigidBody
in attachment
or in ref_attachment
; they cannot both be Node
s.
transform: Vec<RigidTransform>
Changes the position of the attachment point.
extra: Vec<Extra>
Provides arbitrary additional information about this element.
Implementations§
Trait Implementations§
Source§impl Clone for Attachment
impl Clone for Attachment
Source§fn clone(&self) -> Attachment
fn clone(&self) -> Attachment
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 Attachment
impl RefUnwindSafe for Attachment
impl Send for Attachment
impl Sync for Attachment
impl Unpin for Attachment
impl UnwindSafe for Attachment
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