pub struct ColliderDef {
pub id: String,
pub shape: String,
pub position: [f32; 3],
pub dimensions: HashMap<String, f32>,
pub restitution: f32,
pub friction: f32,
pub is_static: bool,
}Fields§
§id: String§shape: String“Sphere” | “Plane” | “Aabb” | “Capsule” | “Cylinder” | “Cone”
position: [f32; 3]§dimensions: HashMap<String, f32>Shape-specific dimensions: radius, half_extents, half_height, etc.
restitution: f32§friction: f32§is_static: boolTrait Implementations§
Source§impl Clone for ColliderDef
impl Clone for ColliderDef
Source§fn clone(&self) -> ColliderDef
fn clone(&self) -> ColliderDef
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 ColliderDef
impl Debug for ColliderDef
Source§impl<'de> Deserialize<'de> for ColliderDef
impl<'de> Deserialize<'de> for ColliderDef
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 ColliderDef
impl RefUnwindSafe for ColliderDef
impl Send for ColliderDef
impl Sync for ColliderDef
impl Unpin for ColliderDef
impl UnsafeUnpin for ColliderDef
impl UnwindSafe for ColliderDef
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