pub struct CollisionPlaneConfig {
pub normal: [f32; 3],
pub offset: f32,
pub restitution: f32,
}Expand description
Collision plane configuration for pack-driven physics.
Fields§
§normal: [f32; 3]Plane normal vector. Default: [0, 1, 0] (up).
offset: f32Plane offset from origin. Default: 0.0.
restitution: f32Coefficient of restitution (bounciness). Default: 0.5.
Trait Implementations§
Source§impl Clone for CollisionPlaneConfig
impl Clone for CollisionPlaneConfig
Source§fn clone(&self) -> CollisionPlaneConfig
fn clone(&self) -> CollisionPlaneConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CollisionPlaneConfig
impl Debug for CollisionPlaneConfig
Source§impl<'de> Deserialize<'de> for CollisionPlaneConfig
impl<'de> Deserialize<'de> for CollisionPlaneConfig
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 Freeze for CollisionPlaneConfig
impl RefUnwindSafe for CollisionPlaneConfig
impl Send for CollisionPlaneConfig
impl Sync for CollisionPlaneConfig
impl Unpin for CollisionPlaneConfig
impl UnsafeUnpin for CollisionPlaneConfig
impl UnwindSafe for CollisionPlaneConfig
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