pub struct ForceFieldConfig {
pub kind: String,
pub position: [f32; 3],
pub strength: f32,
pub radius: f32,
}Expand description
Force field configuration for pack-driven physics.
Fields§
§kind: StringForce field kind identifier.
position: [f32; 3]Position in world space.
strength: f32Field strength. Default: 9.81.
radius: f32Field radius. Default: 100.0.
Trait Implementations§
Source§impl Clone for ForceFieldConfig
impl Clone for ForceFieldConfig
Source§fn clone(&self) -> ForceFieldConfig
fn clone(&self) -> ForceFieldConfig
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 ForceFieldConfig
impl Debug for ForceFieldConfig
Source§impl<'de> Deserialize<'de> for ForceFieldConfig
impl<'de> Deserialize<'de> for ForceFieldConfig
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 ForceFieldConfig
impl RefUnwindSafe for ForceFieldConfig
impl Send for ForceFieldConfig
impl Sync for ForceFieldConfig
impl Unpin for ForceFieldConfig
impl UnsafeUnpin for ForceFieldConfig
impl UnwindSafe for ForceFieldConfig
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