Add hepler function for building a contact force event from a contact pair
This commit is contained in:
@@ -278,17 +278,6 @@ impl GenericJoint {
|
||||
self
|
||||
}
|
||||
|
||||
/// Are contacts between the attached rigid-bodies enabled?
|
||||
pub fn contacts_enabled(&self) -> bool {
|
||||
self.contacts_enabled
|
||||
}
|
||||
|
||||
/// Sets whether contacts between the attached rigid-bodies are enabled.
|
||||
pub fn set_contacts_enabled(&mut self, enabled: bool) -> &mut Self {
|
||||
self.contacts_enabled = enabled;
|
||||
self
|
||||
}
|
||||
|
||||
/// The principal (local X) axis of this joint, expressed in the first rigid-body’s local-space.
|
||||
#[must_use]
|
||||
pub fn local_axis1(&self) -> UnitVector<Real> {
|
||||
@@ -337,6 +326,17 @@ impl GenericJoint {
|
||||
self
|
||||
}
|
||||
|
||||
/// Are contacts between the attached rigid-bodies enabled?
|
||||
pub fn contacts_enabled(&self) -> bool {
|
||||
self.contacts_enabled
|
||||
}
|
||||
|
||||
/// Sets whether contacts between the attached rigid-bodies are enabled.
|
||||
pub fn set_contacts_enabled(&mut self, enabled: bool) -> &mut Self {
|
||||
self.contacts_enabled = enabled;
|
||||
self
|
||||
}
|
||||
|
||||
/// The joint limits along the specified axis.
|
||||
#[must_use]
|
||||
pub fn limits(&self, axis: JointAxis) -> Option<&JointLimits<Real>> {
|
||||
|
||||
Reference in New Issue
Block a user