use super::*;
pub struct Shape<'w> {
pub(crate) proof: crate::world::ShapeProof<'w>,
}
impl<'w> Shape<'w> {
pub(crate) fn new(proof: crate::world::ShapeProof<'w>) -> Self {
Self { proof }
}
pub fn id(&self) -> ShapeId {
self.proof.id()
}
pub fn destroy(self, update_body_mass: bool) -> Result<()> {
self.proof.call(|shape| shape.destroy(update_body_mass))
}
}