Enum ark_api::world::PhysicsShape
source · pub enum PhysicsShape {
Sphere,
Box,
Capsule,
Mesh,
Compound(CompoundPhysicsShape),
ConvexMesh,
}Expand description
Used to describe what physics shape the Physics component should use.
Variants§
Sphere
A sphere physics shape configured from the Bounds bounding sphere.
Box
A box physics shape configured from the Bounds bounding box.
Capsule
A capsule physics shape configured from the Bounds bounding box.
Mesh
A mesh physics shape. Can only be used for static or kinematic physics objects.
Compound(CompoundPhysicsShape)
A compound physics shape of multiple PhysicsShapeDesc described primitives.
ConvexMesh
The convex hull of a mesh, can be used for any type of physics object.
Implementations§
source§impl PhysicsShape
impl PhysicsShape
pub fn as_ffi(&self) -> PhysicsShape
Trait Implementations§
source§impl Clone for PhysicsShape
impl Clone for PhysicsShape
source§fn clone(&self) -> PhysicsShape
fn clone(&self) -> PhysicsShape
Returns a copy 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 PhysicsShape
impl Debug for PhysicsShape
source§impl PartialEq<PhysicsShape> for PhysicsShape
impl PartialEq<PhysicsShape> for PhysicsShape
source§fn eq(&self, other: &PhysicsShape) -> bool
fn eq(&self, other: &PhysicsShape) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PhysicsShape
Auto Trait Implementations§
impl RefUnwindSafe for PhysicsShape
impl Send for PhysicsShape
impl Sync for PhysicsShape
impl Unpin for PhysicsShape
impl UnwindSafe for PhysicsShape
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