Start integrating salva into rapier.
This commit is contained in:
@@ -17,6 +17,9 @@ pub(crate) use self::solver::IslandSolver;
|
||||
#[cfg(feature = "parallel")]
|
||||
pub(crate) use self::solver::ParallelIslandSolver;
|
||||
|
||||
#[cfg(feature = "fluids")]
|
||||
pub use salva::object::{Boundary, BoundaryHandle, BoundarySet, Fluid, FluidHandle, FluidSet};
|
||||
|
||||
mod integration_parameters;
|
||||
mod joint;
|
||||
mod mass_properties;
|
||||
|
||||
@@ -370,6 +370,12 @@ impl RigidBody {
|
||||
self.apply_impulse(impulse, wake_up);
|
||||
self.apply_torque_impulse(torque_impulse, wake_up);
|
||||
}
|
||||
|
||||
/// The velocity of the given world-space point on this rigid-body.
|
||||
pub fn velocity_at_point(&self, point: &Point<f32>) -> Vector<f32> {
|
||||
let dpt = point - self.world_com;
|
||||
self.linvel + self.angvel.gcross(dpt)
|
||||
}
|
||||
}
|
||||
|
||||
/// A builder for rigid-bodies.
|
||||
|
||||
Reference in New Issue
Block a user