Skip to content

Commit

Permalink
Remove ColliderAabbWithMargin
Browse files Browse the repository at this point in the history
  • Loading branch information
Jondolf committed Aug 8, 2022
1 parent 3841e13 commit 86ce6e1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/bundles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ impl RigidBodyBundle {
pub struct ColliderBundle {
collider_shape: ColliderShape,
collider_aabb: ColliderAabb,
collider_aabb_with_margin: ColliderAabbWithMargin,
pub mass_props: ColliderMassProperties,
pub(crate) prev_mass_props: PrevColliderMassProperties,
}
Expand All @@ -113,7 +112,6 @@ impl ColliderBundle {
Self {
collider_shape: ColliderShape(shape.to_owned()),
collider_aabb: aabb,
collider_aabb_with_margin: ColliderAabbWithMargin(aabb),
mass_props,
prev_mass_props: PrevColliderMassProperties(ColliderMassProperties::ZERO),
}
Expand Down
5 changes: 0 additions & 5 deletions src/components/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ pub(crate) struct MassPropsQueryMut<'w> {
pub(crate) struct ColliderQuery<'w> {
pub shape: &'w mut ColliderShape,
pub aabb: &'w mut ColliderAabb,
pub aabb_with_margin: &'w mut ColliderAabbWithMargin,
pub mass_props: &'w mut ColliderMassProperties,
pub prev_mass_props: &'w mut PrevColliderMassProperties,
}
Expand Down Expand Up @@ -404,10 +403,6 @@ impl Default for ColliderShape {
#[derive(Clone, Copy, Component, Deref, DerefMut, PartialEq)]
pub(crate) struct ColliderAabb(pub AABB);

/// An Axis-Aligned Bounding Box for colliders, with an additional safety margin to account for sudden accelerations.
#[derive(Clone, Copy, Component, Default, Deref, DerefMut, PartialEq)]
pub(crate) struct ColliderAabbWithMargin(pub ColliderAabb);

impl ColliderAabb {
/// Creates a new collider from a given [`ColliderShape`] with a default density of 1.0.
pub fn from_shape(shape: &Shape) -> Self {
Expand Down

0 comments on commit 86ce6e1

Please sign in to comment.