-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix compilation and remove nphysics mentions #60
Conversation
Vrixyz
commented
Sep 6, 2024
- needed for new PR to pass their tests (Replace instant by web-time #53)
src/object/fluid.rs
Outdated
/// Computes the AABB of this fluid. | ||
#[cfg(feature = "nphysics")] | ||
pub fn compute_aabb(&self, particle_radius: Real) -> ncollide::bounding_volume::AABB<Real> { | ||
use ncollide::bounding_volume::{self, BoundingVolume}; | ||
bounding_volume::local_point_cloud_aabb(&self.positions).loosened(particle_radius) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably be kept but translated for parry ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. The translation should look very similar. Parry’s point-cloud calculation function is in bounding_volume::details::local_point_cloud_aabb
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
src/object/fluid.rs
Outdated
/// Computes the AABB of this fluid. | ||
#[cfg(feature = "nphysics")] | ||
pub fn compute_aabb(&self, particle_radius: Real) -> ncollide::bounding_volume::AABB<Real> { | ||
use ncollide::bounding_volume::{self, BoundingVolume}; | ||
bounding_volume::local_point_cloud_aabb(&self.positions).loosened(particle_radius) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. The translation should look very similar. Parry’s point-cloud calculation function is in bounding_volume::details::local_point_cloud_aabb
.
3403bf7
to
14f5885
Compare
c49ee7d
to
d75d412
Compare