Struct rbx_types::CustomPhysicalProperties
source · pub struct CustomPhysicalProperties {
pub density: f32,
pub friction: f32,
pub elasticity: f32,
pub friction_weight: f32,
pub elasticity_weight: f32,
}
Expand description
Custom physics properties that can be given to parts.
Documentation for what these do can be found on the
PhysicalProperties
DevHub documentation.
Fields§
§density: f32
§friction: f32
§elasticity: f32
§friction_weight: f32
§elasticity_weight: f32
Trait Implementations§
source§impl Clone for CustomPhysicalProperties
impl Clone for CustomPhysicalProperties
source§fn clone(&self) -> CustomPhysicalProperties
fn clone(&self) -> CustomPhysicalProperties
Returns a copy 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 CustomPhysicalProperties
impl Debug for CustomPhysicalProperties
source§impl From<CustomPhysicalProperties> for PhysicalProperties
impl From<CustomPhysicalProperties> for PhysicalProperties
source§fn from(value: CustomPhysicalProperties) -> Self
fn from(value: CustomPhysicalProperties) -> Self
Converts to this type from the input type.
source§impl PartialEq for CustomPhysicalProperties
impl PartialEq for CustomPhysicalProperties
source§fn eq(&self, other: &CustomPhysicalProperties) -> bool
fn eq(&self, other: &CustomPhysicalProperties) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CustomPhysicalProperties
impl StructuralPartialEq for CustomPhysicalProperties
Auto Trait Implementations§
impl RefUnwindSafe for CustomPhysicalProperties
impl Send for CustomPhysicalProperties
impl Sync for CustomPhysicalProperties
impl Unpin for CustomPhysicalProperties
impl UnwindSafe for CustomPhysicalProperties
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