pub struct Obstacle {
pub name: String,
pub aabb: Aabb,
pub contact: bool,
pub stiffness: f64,
pub damping: f64,
}Expand description
An obstacle of the config ([[obstacles]]), and whether a part of the machine touches it now. With effects.crash
it pushes back on a part that goes into it with stiffness (N/m) times the depth and damping (N s/m) times the
speed into it.
Fields§
§name: String§aabb: Aabb§contact: bool§stiffness: f64§damping: f64Trait Implementations§
Source§impl<'de> Deserialize<'de> for Obstacle
impl<'de> Deserialize<'de> for Obstacle
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
impl StructuralPartialEq for Obstacle
Auto Trait Implementations§
impl Freeze for Obstacle
impl RefUnwindSafe for Obstacle
impl Send for Obstacle
impl Sync for Obstacle
impl Unpin for Obstacle
impl UnsafeUnpin for Obstacle
impl UnwindSafe for Obstacle
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