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§
source§impl CompoundPhysicsShape
impl CompoundPhysicsShape
sourcepub fn new<Iter>(descs: Iter) -> Selfwhere
Iter: Iterator<Item = PhysicsShapeDesc>,
pub fn new<Iter>(descs: Iter) -> Selfwhere 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§
source§impl Clone for CompoundPhysicsShape
impl Clone for CompoundPhysicsShape
source§fn clone(&self) -> CompoundPhysicsShape
fn clone(&self) -> CompoundPhysicsShape
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 CompoundPhysicsShape
impl Debug for CompoundPhysicsShape
source§impl PartialEq<CompoundPhysicsShape> for CompoundPhysicsShape
impl PartialEq<CompoundPhysicsShape> for CompoundPhysicsShape
source§fn 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 ==.source§impl ValueConverterTrait<CompoundPhysicsShape> for ValueConverter
impl ValueConverterTrait<CompoundPhysicsShape> for ValueConverter
source§fn into_value(v: CompoundPhysicsShape) -> Value
fn into_value(v: CompoundPhysicsShape) -> Value
Wraps the passed-in value in a
Value enum.source§fn 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§
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