pub struct ObstacleSnapshot {
pub id: u64,
pub kind: ObstacleKind,
pub center: Vec3,
pub radius: f64,
pub velocity: Vec3,
}Expand description
Instantaneous snapshot of an obstacle’s bounding circle and velocity
in 3-D. Implementations should project to z = 0 if they live in 2-D.
Fields§
§id: u64Stable identifier within the hosting simulation.
kind: ObstacleKindKind.
center: Vec3Centre in 3-D.
radius: f64Enclosing sphere radius in metres.
velocity: Vec3Linear velocity in 3-D (m/s).
Trait Implementations§
Source§impl Clone for ObstacleSnapshot
impl Clone for ObstacleSnapshot
Source§fn clone(&self) -> ObstacleSnapshot
fn clone(&self) -> ObstacleSnapshot
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 ObstacleSnapshot
impl Debug for ObstacleSnapshot
Source§impl Obstacle for ObstacleSnapshot
impl Obstacle for ObstacleSnapshot
Source§fn snapshot(&self) -> ObstacleSnapshot
fn snapshot(&self) -> ObstacleSnapshot
Produce an instantaneous snapshot for broadphase insertion.
Source§impl PartialEq for ObstacleSnapshot
impl PartialEq for ObstacleSnapshot
impl Copy for ObstacleSnapshot
impl StructuralPartialEq for ObstacleSnapshot
Auto Trait Implementations§
impl Freeze for ObstacleSnapshot
impl RefUnwindSafe for ObstacleSnapshot
impl Send for ObstacleSnapshot
impl Sync for ObstacleSnapshot
impl Unpin for ObstacleSnapshot
impl UnsafeUnpin for ObstacleSnapshot
impl UnwindSafe for ObstacleSnapshot
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