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
sourceimpl PhysicsShape
impl PhysicsShape
pub fn as_ffi(&self) -> PhysicsShape
Trait Implementations
sourceimpl Clone for PhysicsShape
impl Clone for PhysicsShape
sourcefn clone(&self) -> PhysicsShape
fn clone(&self) -> PhysicsShape
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PhysicsShape
impl Debug for PhysicsShape
sourceimpl PartialEq<PhysicsShape> for PhysicsShape
impl PartialEq<PhysicsShape> for PhysicsShape
sourcefn 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 ==
. Read more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more