pub struct CollisionElasticBuilder(/* private fields */);Implementations§
Source§impl CollisionElasticBuilder
impl CollisionElasticBuilder
pub fn new() -> Self
pub fn new_from_body(body: CollisionElastic) -> Self
pub fn build(self) -> CollisionElastic
pub fn with_issuing_entity_id(self, issuing_entity_id: EntityId) -> Self
pub fn with_colliding_entity_id(self, colliding_entity_id: EntityId) -> Self
pub fn with_event_id(self, event_id: EventId) -> Self
pub fn with_velocity(self, velocity: VectorF32) -> Self
pub fn with_mass(self, mass: f32) -> Self
pub fn with_location(self, location: VectorF32) -> Self
pub fn with_intermediate_result_xx(self, intermediate_result_xx: f32) -> Self
pub fn with_intermediate_result_xy(self, intermediate_result_xy: f32) -> Self
pub fn with_intermediate_result_xz(self, intermediate_result_xz: f32) -> Self
pub fn with_intermediate_result_yy(self, intermediate_result_yy: f32) -> Self
pub fn with_intermediate_result_yz(self, intermediate_result_yz: f32) -> Self
pub fn with_intermediate_result_zz(self, intermediate_result_zz: f32) -> Self
pub fn with_unit_surface_normal(self, unit_surface_normal: VectorF32) -> Self
pub fn with_coefficient_of_restitution( self, coefficient_of_restitution: f32, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CollisionElasticBuilder
impl RefUnwindSafe for CollisionElasticBuilder
impl Send for CollisionElasticBuilder
impl Sync for CollisionElasticBuilder
impl Unpin for CollisionElasticBuilder
impl UnwindSafe for CollisionElasticBuilder
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