pub trait HazardEntity:
Copy
+ Eq
+ Hash
+ Debug {
// Required method
fn scope(&self) -> GeoPosition;
}Expand description
Entity inducing a Hazard: everything the collision engine needs to know about it.
Each entity registered in a CDEngine must be unique.
BasicHazardEntity covers the entities of this crate’s layouts. Applications with other
kinds of hazards can define their own.
Required Methods§
Sourcefn scope(&self) -> GeoPosition
fn scope(&self) -> GeoPosition
Whether the hazard covers the interior or the exterior of its shape. An engine needs exactly one exterior hazard.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".