pub struct PrismaticJointDef {Show 13 fields
pub body_a: BodyHandle,
pub body_b: BodyHandle,
pub collide_connected: bool,
pub local_anchor_a: Vec2,
pub local_anchor_b: Vec2,
pub local_axis_a: Vec2,
pub reference_angle: f32,
pub enable_limit: bool,
pub lower_translation: f32,
pub upper_translation: f32,
pub enable_motor: bool,
pub max_motor_force: f32,
pub motor_speed: f32,
}Fields§
§body_a: BodyHandle§body_b: BodyHandle§collide_connected: bool§local_anchor_a: Vec2§local_anchor_b: Vec2§local_axis_a: Vec2§reference_angle: f32§enable_limit: bool§lower_translation: f32§upper_translation: f32§enable_motor: bool§max_motor_force: f32§motor_speed: f32Implementations§
source§impl PrismaticJointDef
impl PrismaticJointDef
pub fn new(body_a: BodyHandle, body_b: BodyHandle) -> PrismaticJointDef
pub fn init<U: UserDataTypes>( &mut self, world: &World<U>, body_a: BodyHandle, body_b: BodyHandle, anchor: &Vec2, axis: &Vec2 )
pub fn try_init<U: UserDataTypes>( &mut self, world: &World<U>, body_a: BodyHandle, body_b: BodyHandle, anchor: &Vec2, axis: &Vec2 ) -> Option<()>
Trait Implementations§
source§impl JointDef for PrismaticJointDef
impl JointDef for PrismaticJointDef
fn joint_type() -> JointTypewhere
Self: Sized,
Auto Trait Implementations§
impl RefUnwindSafe for PrismaticJointDef
impl Send for PrismaticJointDef
impl Sync for PrismaticJointDef
impl Unpin for PrismaticJointDef
impl UnwindSafe for PrismaticJointDef
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