pub struct ContactUpdateContext {
pub friction_callback: FrictionCallback,
pub restitution_callback: RestitutionCallback,
pub pre_solve_fcn: Option<PreSolveFcn>,
pub pre_solve_context: u64,
pub world_id: u16,
pub enable_speculative: bool,
}Expand description
The world data update_contact needs, copied out so the caller can hold
&mut ContactSim and &Shape borrows at the same time (the C version
reads these through b2World*).
Fields§
§friction_callback: FrictionCallback§restitution_callback: RestitutionCallback§pre_solve_fcn: Option<PreSolveFcn>§pre_solve_context: u64§world_id: u16§enable_speculative: boolImplementations§
Source§impl ContactUpdateContext
impl ContactUpdateContext
pub fn new(world: &World) -> ContactUpdateContext
Trait Implementations§
Source§impl Clone for ContactUpdateContext
impl Clone for ContactUpdateContext
Source§fn clone(&self) -> ContactUpdateContext
fn clone(&self) -> ContactUpdateContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ContactUpdateContext
Auto Trait Implementations§
impl Freeze for ContactUpdateContext
impl RefUnwindSafe for ContactUpdateContext
impl Send for ContactUpdateContext
impl Sync for ContactUpdateContext
impl Unpin for ContactUpdateContext
impl UnsafeUnpin for ContactUpdateContext
impl UnwindSafe for ContactUpdateContext
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