Struct nphysics3d::integration::TranslationalCCDMotionClamping
[−]
[src]
pub struct TranslationalCCDMotionClamping<N: Real> { /* fields omitted */ }
Handles Continuous Collision Detection.
Methods
impl<N: Real> TranslationalCCDMotionClamping<N>
[src]
fn new() -> TranslationalCCDMotionClamping<N>
[src]
Creates a new TranslationalCCDMotionClamping
to enable continuous collision detection to
fast-moving rigid bodies.
fn add_ccd_to(
&mut self,
rigid_body: RigidBodyHandle<N>,
motion_threshold: N,
trigger_sensors: bool
)
[src]
&mut self,
rigid_body: RigidBodyHandle<N>,
motion_threshold: N,
trigger_sensors: bool
)
Enables continuous collision for the given rigid body.
fn remove_ccd_from(&mut self, rigid_body: &RigidBodyHandle<N>)
[src]
Enables continuous collision for the given rigid body.
fn update(&mut self, cw: &mut RigidBodyCollisionWorld<N>) -> bool
[src]
Update the time of impacts and apply motion clamping when necessary.
Returns false
if no clamping was done. If at least one clamping was performed, the
collision word will be updated by this method once all the clamping have been performed.