Enum wrapped2d::collision::shapes::UnknownShape
source · pub enum UnknownShape {
Unknown,
Circle(CircleShape),
Edge(EdgeShape),
Polygon(PolygonShape),
Chain(ChainShape),
}
Variants§
Trait Implementations§
source§impl Shape for UnknownShape
impl Shape for UnknownShape
fn shape_type(&self) -> ShapeType
fn child_count(&self) -> i32
fn test_point(&self, xf: &Transform, p: &Vec2) -> bool
fn ray_cast( &self, input: &RayCastInput, transform: &Transform, child_index: i32 ) -> RayCastOutput
fn compute_aabb(&self, xf: &Transform, child_index: i32) -> AABB
fn compute_mass(&self, density: f32) -> MassData
Auto Trait Implementations§
impl RefUnwindSafe for UnknownShape
impl !Send for UnknownShape
impl !Sync for UnknownShape
impl Unpin for UnknownShape
impl UnwindSafe for UnknownShape
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