Trait oxygengine_physics_2d::prelude::ncollide2d::shape::DeformableShape
source · pub trait DeformableShape<N>where
N: RealField + Copy,{
// Required methods
fn deformations_type(&self) -> DeformationsType;
fn set_deformations(&mut self, coords: &[N]);
fn update_local_approximation(
&self,
coords: &[N],
approx: &mut LocalShapeApproximation<N>
);
}
Expand description
Trait implemented by deformable shapes.
Required Methods§
sourcefn deformations_type(&self) -> DeformationsType
fn deformations_type(&self) -> DeformationsType
The type of degrees of freedom this shape has.
sourcefn set_deformations(&mut self, coords: &[N])
fn set_deformations(&mut self, coords: &[N])
Updates some the degrees of freedom of this shape. Updates all the degrees of freedom of this shape.
sourcefn update_local_approximation(
&self,
coords: &[N],
approx: &mut LocalShapeApproximation<N>
)
fn update_local_approximation( &self, coords: &[N], approx: &mut LocalShapeApproximation<N> )
Updates the given local approximation of this shape.