Struct ark_api::world::CompoundPhysicsShape
source · [−]pub struct CompoundPhysicsShape { /* private fields */ }
Expand description
Represents a set of physics shapes
Used with the Physics
component to create more complex physics shapes
by combining primitive shapes.
Implementations
sourceimpl CompoundPhysicsShape
impl CompoundPhysicsShape
sourcepub fn new<Iter>(descs: Iter) -> Self where
Iter: Iterator<Item = PhysicsShapeDesc>,
pub fn new<Iter>(descs: Iter) -> Self where
Iter: Iterator<Item = PhysicsShapeDesc>,
Creates a new CompoundPhysicsShape
. This creates a data object in the host that can be shared
for multiple entities. Spheres and capsules must have a radius larger than zero.
sourcepub fn set_debug_name(&self, name: &str)
pub fn set_debug_name(&self, name: &str)
Sets a debug name of this data object. Useful for debugging memory usage and leaks.
Trait Implementations
sourceimpl Clone for CompoundPhysicsShape
impl Clone for CompoundPhysicsShape
sourcefn clone(&self) -> CompoundPhysicsShape
fn clone(&self) -> CompoundPhysicsShape
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 CompoundPhysicsShape
impl Debug for CompoundPhysicsShape
sourceimpl PartialEq<CompoundPhysicsShape> for CompoundPhysicsShape
impl PartialEq<CompoundPhysicsShape> for CompoundPhysicsShape
sourcefn eq(&self, other: &CompoundPhysicsShape) -> bool
fn eq(&self, other: &CompoundPhysicsShape) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl ValueConverterTrait<CompoundPhysicsShape> for ValueConverter
impl ValueConverterTrait<CompoundPhysicsShape> for ValueConverter
sourcefn into_value(v: CompoundPhysicsShape) -> Value
fn into_value(v: CompoundPhysicsShape) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> CompoundPhysicsShape
fn from_value(v: &Value) -> CompoundPhysicsShape
Extracts the value from a Value
enum.
impl StructuralPartialEq for CompoundPhysicsShape
Auto Trait Implementations
impl RefUnwindSafe for CompoundPhysicsShape
impl Send for CompoundPhysicsShape
impl Sync for CompoundPhysicsShape
impl Unpin for CompoundPhysicsShape
impl UnwindSafe for CompoundPhysicsShape
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