Enum wrapped2d::dynamics::joints::UnknownJoint
source · pub enum UnknownJoint {
Unknown,
Revolute(RevoluteJoint),
Prismatic(PrismaticJoint),
Distance(DistanceJoint),
Pulley(PulleyJoint),
Mouse(MouseJoint),
Gear(GearJoint),
Wheel(WheelJoint),
Weld(WeldJoint),
Friction(FrictionJoint),
Rope(RopeJoint),
Motor(MotorJoint),
}
Variants§
Unknown
Revolute(RevoluteJoint)
Prismatic(PrismaticJoint)
Distance(DistanceJoint)
Pulley(PulleyJoint)
Mouse(MouseJoint)
Gear(GearJoint)
Wheel(WheelJoint)
Weld(WeldJoint)
Friction(FrictionJoint)
Rope(RopeJoint)
Motor(MotorJoint)
Trait Implementations§
source§impl Joint for UnknownJoint
impl Joint for UnknownJoint
fn assumed_type() -> JointType
fn handle(&self) -> JointHandle
fn get_type(&self) -> JointType
fn body_a(&self) -> BodyHandle
fn body_b(&self) -> BodyHandle
fn anchor_a(&self) -> Vec2
fn anchor_b(&self) -> Vec2
fn reaction_force(&self) -> Vec2
fn reaction_torque(&self) -> f32
fn is_active(&self) -> bool
fn is_collide_connected(&self) -> bool
fn dump(&mut self)
fn shift_origin(&mut self, origin: &Vec2)
Auto Trait Implementations§
impl RefUnwindSafe for UnknownJoint
impl !Send for UnknownJoint
impl !Sync for UnknownJoint
impl Unpin for UnknownJoint
impl UnwindSafe for UnknownJoint
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