Enum ark_api::world::PhysicsShapeDesc
source · [−]pub enum PhysicsShapeDesc {
Box {
center: Vec3,
half_size: Vec3,
rotation: Quat,
},
Sphere {
center: Vec3,
radius: f32,
},
Capsule {
pos0: Vec3,
pos1: Vec3,
radius: f32,
},
}
Expand description
Represents data for setting up a physics shape
Variants
Box
A box centered at center
with a half size of half_size
Sphere
A sphere centered at center
with a radius of radius
(radius must be larger than zero)
Capsule
A capsule spanning from pos0
to pos1
with a radius of radius
at its ends (radius must be larger than zero)
Trait Implementations
sourceimpl Clone for PhysicsShapeDesc
impl Clone for PhysicsShapeDesc
sourcefn clone(&self) -> PhysicsShapeDesc
fn clone(&self) -> PhysicsShapeDesc
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
Auto Trait Implementations
impl RefUnwindSafe for PhysicsShapeDesc
impl Send for PhysicsShapeDesc
impl Sync for PhysicsShapeDesc
impl Unpin for PhysicsShapeDesc
impl UnwindSafe for PhysicsShapeDesc
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