Struct wrapped2d::serialize::PrismaticJointSnapshot
source · pub struct PrismaticJointSnapshot {Show 13 fields
pub body_a: BodyId,
pub body_b: BodyId,
pub collide_connected: bool,
pub local_anchor_a: [f32; 2],
pub local_anchor_b: [f32; 2],
pub local_axis_a: [f32; 2],
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: BodyId
§body_b: BodyId
§collide_connected: bool
§local_anchor_a: [f32; 2]
§local_anchor_b: [f32; 2]
§local_axis_a: [f32; 2]
§reference_angle: f32
§enable_limit: bool
§lower_translation: f32
§upper_translation: f32
§enable_motor: bool
§max_motor_force: f32
§motor_speed: f32
Implementations§
source§impl PrismaticJointSnapshot
impl PrismaticJointSnapshot
pub fn take(joint: &PrismaticJoint) -> Self
pub fn rebuild<U: UserDataTypes>( &self, world: &mut World<U>, data: U::JointData, id_to_handle: &mut IdToHandle ) -> JointHandle
Trait Implementations§
source§impl<'de> Deserialize<'de> for Snapshot
impl<'de> Deserialize<'de> for Snapshot
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 RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnwindSafe for Snapshot
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