[−][src]Struct nphysics3d::object::ColliderDesc
A non-deformable collider builder.
See https://www.nphysics.org/rigid_body_simulations_with_contacts/#colliders for details.
Methods
impl<N: RealField> ColliderDesc<N>
[src]
pub fn new(shape: ShapeHandle<N>) -> Self
[src]
Creates a new collider builder with the given shape.
pub fn default_margin() -> N
[src]
The default margin surrounding a collider: 0.01
pub fn user_data(self, data: impl UserData) -> Self
[src]
Sets a user-data to be attached to the object being built.
pub fn set_user_data(&mut self, data: Option<impl UserData>) -> &mut Self
[src]
Sets the user-data to be attached to the object being built.
pub fn get_user_data(&self) -> Option<&(dyn Any + Send + Sync)>
[src]
Reference to the user-data to be attached to the object being built.
pub fn rotation(self, axisangle: Vector<N>) -> Self
[src]
pub fn set_rotation(&mut self, axisangle: Vector<N>) -> &mut Self
[src]
pub fn translation(self, vector: Vector<N>) -> Self
[src]
pub fn set_translation(&mut self, vector: Vector<N>) -> &mut Self
[src]
pub fn material(self, material: MaterialHandle<N>) -> Self
[src]
pub fn set_material(&mut self, material: MaterialHandle<N>) -> &mut Self
[src]
pub fn shape(self, shape: ShapeHandle<N>) -> Self
[src]
pub fn set_shape(&mut self, shape: ShapeHandle<N>) -> &mut Self
[src]
pub fn margin(self, margin: N) -> Self
[src]
pub fn set_margin(&mut self, margin: N) -> &mut Self
[src]
pub fn density(self, density: N) -> Self
[src]
pub fn set_density(&mut self, density: N) -> &mut Self
[src]
pub fn name(self, name: String) -> Self
[src]
pub fn set_name(&mut self, name: String) -> &mut Self
[src]
pub fn collision_groups(self, collision_groups: CollisionGroups) -> Self
[src]
pub fn set_collision_groups(
&mut self,
collision_groups: CollisionGroups
) -> &mut Self
[src]
&mut self,
collision_groups: CollisionGroups
) -> &mut Self
pub fn linear_prediction(self, linear_prediction: N) -> Self
[src]
pub fn set_linear_prediction(&mut self, linear_prediction: N) -> &mut Self
[src]
pub fn angular_prediction(self, angular_prediction: N) -> Self
[src]
pub fn set_angular_prediction(&mut self, angular_prediction: N) -> &mut Self
[src]
pub fn sensor(self, is_sensor: bool) -> Self
[src]
pub fn set_is_sensor(&mut self, is_sensor: bool) -> &mut Self
[src]
pub fn position(self, position: Isometry<N>) -> Self
[src]
pub fn set_position(&mut self, position: Isometry<N>) -> &mut Self
[src]
pub fn get_rotation(&self) -> Vector<N>
[src]
pub fn get_shape(&self) -> &dyn Shape<N>
[src]
pub fn get_name(&self) -> &str
[src]
pub fn get_translation(&self) -> &Vector<N>
[src]
pub fn get_material(&self) -> Option<&dyn Material<N>>
[src]
pub fn get_margin(&self) -> N
[src]
pub fn get_density(&self) -> N
[src]
pub fn get_collision_groups(&self) -> CollisionGroups
[src]
pub fn get_linear_prediction(&self) -> N
[src]
pub fn get_angular_prediction(&self) -> N
[src]
pub fn is_sensor(&self) -> bool
[src]
pub fn get_position(&self) -> &Isometry<N>
[src]
pub fn build_with_parent<'w>(
&self,
parent: BodyPartHandle,
world: &'w mut World<N>
) -> Option<&'w mut Collider<N>>
[src]
&self,
parent: BodyPartHandle,
world: &'w mut World<N>
) -> Option<&'w mut Collider<N>>
Builds a collider into the world
attached to the body part parent
.
pub fn build<'w>(&self, world: &'w mut World<N>) -> &'w mut Collider<N>
[src]
Builds a collider into the world
.
Auto Trait Implementations
impl<N> Send for ColliderDesc<N> where
N: Scalar,
N: Scalar,
impl<N> Sync for ColliderDesc<N> where
N: Scalar,
N: Scalar,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[src]
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn is_in_subset(&self) -> bool
[src]
unsafe fn to_subset_unchecked(&self) -> SS
[src]
fn from_subset(element: &SS) -> SP
[src]
impl<T> Same for T
type Output = T
Should always be Self