pub struct JointMotor2D {
pub m_MaximumMotorForce: f32,
pub m_MotorSpeed: f32,
}Expand description
JointMotor2D is a sub class of the Unity engine since version 4.3.0. Exert from Unity’s scripting documentation: Parameters for the optional motor force applied to a Joint2D. See Also: HingeJoint2D class, SliderJoint2D class.
Fields§
§m_MaximumMotorForce: f32§m_MotorSpeed: f32The desired speed for the Rigidbody2D to reach as it moves with the joint.
Trait Implementations§
Source§impl Debug for JointMotor2D
impl Debug for JointMotor2D
Source§impl<'de> Deserialize<'de> for JointMotor2D
impl<'de> Deserialize<'de> for JointMotor2D
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for JointMotor2D
impl RefUnwindSafe for JointMotor2D
impl Send for JointMotor2D
impl Sync for JointMotor2D
impl Unpin for JointMotor2D
impl UnwindSafe for JointMotor2D
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