use crate::dynamics::{GenericJoint, ImpulseJointHandle, RigidBodyHandle};
use crate::math::SpatialVector;
#[cfg_attr(feature = "serde-serialize", derive(Serialize, Deserialize))]
#[derive(Clone, Debug, PartialEq)]
pub struct ImpulseJoint {
pub(crate) body1: RigidBodyHandle,
pub(crate) body2: RigidBodyHandle,
pub data: GenericJoint,
pub impulses: SpatialVector,
pub(crate) handle: ImpulseJointHandle,
}
impl ImpulseJoint {
#[inline]
pub fn body1(&self) -> RigidBodyHandle {
self.body1
}
#[inline]
pub fn body2(&self) -> RigidBodyHandle {
self.body2
}
}