pub trait AsShape {
// Required method
fn as_shape(&self) -> &dyn Shape;
}Expand description
A shape accepted by the scene queries (e.g. RapierContext::cast_shape) and by
RapierContextMut::move_shape: a Collider (its scaled shape), a Rapier shape trait object
(&dyn Shape, e.g. &*shared_shape), or any concrete Rapier shape (e.g. Ball).
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".