pub struct WheelJoint { /* private fields */ }
Implementations§
source§impl WheelJoint
impl WheelJoint
pub fn local_anchor_a<'a>(&'a self) -> &'a Vec2
pub fn local_anchor_b<'a>(&'a self) -> &'a Vec2
pub fn local_axis_a<'a>(&'a self) -> &'a Vec2
pub fn joint_translation(&self) -> f32
pub fn joint_speed(&self) -> f32
pub fn is_motor_enabled(&self) -> bool
pub fn motor_speed(&self) -> f32
pub fn max_motor_torque(&self) -> f32
pub fn motor_torque(&self) -> f32
pub fn spring_frequency(&self) -> f32
pub fn spring_damping_ratio(&self) -> f32
pub fn enable_motor(&mut self, flag: bool)
pub fn set_motor_speed(&mut self, speed: f32)
pub fn set_max_motor_torque(&mut self, torque: f32)
pub fn set_spring_frequency(&mut self, frequency: f32)
pub fn set_spring_damping_ratio(&mut self, ratio: f32)
Trait Implementations§
source§impl Joint for WheelJoint
impl Joint for WheelJoint
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 WheelJoint
impl !Send for WheelJoint
impl !Sync for WheelJoint
impl Unpin for WheelJoint
impl UnwindSafe for WheelJoint
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