pub struct MechanicalJointBehaviour;Expand description
A joint behaviour that causes the anchored body to be accurately positioned with an offset and an angle.
Trait Implementations§
Source§impl Clone for MechanicalJointBehaviour
impl Clone for MechanicalJointBehaviour
Source§fn clone(&self) -> MechanicalJointBehaviour
fn clone(&self) -> MechanicalJointBehaviour
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 moreimpl Copy for MechanicalJointBehaviour
Source§impl Debug for MechanicalJointBehaviour
impl Debug for MechanicalJointBehaviour
Source§impl Default for MechanicalJointBehaviour
impl Default for MechanicalJointBehaviour
Source§fn default() -> MechanicalJointBehaviour
fn default() -> MechanicalJointBehaviour
Returns the “default value” for a type. Read more
Source§impl JointBehaviour for MechanicalJointBehaviour
impl JointBehaviour for MechanicalJointBehaviour
const STAGE: &'static str = stage::COLLIDING_JOINT
Source§fn position(
&mut self,
offset: Vec3,
anchor: &RigidBody,
_target: &RigidBody,
) -> Option<Vec3>
fn position( &mut self, offset: Vec3, anchor: &RigidBody, _target: &RigidBody, ) -> Option<Vec3>
Returns a new position for target based on
self and anchor.Source§fn rotation(
&mut self,
angle: Quat,
anchor: &RigidBody,
_target: &RigidBody,
) -> Option<Quat>
fn rotation( &mut self, angle: Quat, anchor: &RigidBody, _target: &RigidBody, ) -> Option<Quat>
Returns a new rotation for target based on
self and anchor.Source§fn linear_velocity(
&mut self,
_offset: Vec3,
_anchor: &RigidBody,
_target: &RigidBody,
) -> Option<Vec3>
fn linear_velocity( &mut self, _offset: Vec3, _anchor: &RigidBody, _target: &RigidBody, ) -> Option<Vec3>
Returns a new linear velocity for target based on
self and anchor.Source§fn angular_velocity(
&mut self,
_angle: Quat,
_anchor: &RigidBody,
_target: &RigidBody,
) -> Option<Quat>
fn angular_velocity( &mut self, _angle: Quat, _anchor: &RigidBody, _target: &RigidBody, ) -> Option<Quat>
Returns a new angular velocity for target based on
self and anchor.Source§impl PartialEq for MechanicalJointBehaviour
impl PartialEq for MechanicalJointBehaviour
Source§fn eq(&self, other: &MechanicalJointBehaviour) -> bool
fn eq(&self, other: &MechanicalJointBehaviour) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MechanicalJointBehaviour
Auto Trait Implementations§
impl Freeze for MechanicalJointBehaviour
impl RefUnwindSafe for MechanicalJointBehaviour
impl Send for MechanicalJointBehaviour
impl Sync for MechanicalJointBehaviour
impl Unpin for MechanicalJointBehaviour
impl UnsafeUnpin for MechanicalJointBehaviour
impl UnwindSafe for MechanicalJointBehaviour
Blanket Implementations§
impl<T> Any for Twhere
T: Any,
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
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Component for T
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> FromResources for Twhere
T: Default,
impl<T> FromResources for Twhere
T: Default,
Source§fn from_resources(_resources: &Resources) -> T
fn from_resources(_resources: &Resources) -> T
Creates
Self using data from the Resources collection