pub struct JointMotor {
pub force: f32,
pub freeSpin: i32,
pub targetVelocity: f32,
}
Expand description
JointMotor is a sub class of the Unity engine since version 3.4.0. Exert from Unity’s scripting documentation: The JointMotor is used to motorize a joint. For example the HingeJoint can be told to rotate at a given speed and force. The joint will then attempt to reach the velocity with the given maximum force. See Also: HingeJoint.
Fields§
§force: f32
The motor will apply a force.
freeSpin: i32
If freeSpin is enabled the motor will only accelerate but never slow down.
targetVelocity: f32
The motor will apply a force up to force to achieve targetVelocity.
Trait Implementations§
Source§impl Debug for JointMotor
impl Debug for JointMotor
Source§impl<'de> Deserialize<'de> for JointMotor
impl<'de> Deserialize<'de> for JointMotor
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 JointMotor
impl RefUnwindSafe for JointMotor
impl Send for JointMotor
impl Sync for JointMotor
impl Unpin for JointMotor
impl UnwindSafe for JointMotor
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