aboutsummaryrefslogtreecommitdiff
path: root/src/dynamics/joint/fixed_joint.rs
diff options
context:
space:
mode:
authorSébastien Crozet <sebcrozet@dimforge.com>2024-03-17 21:20:18 +0100
committerSébastien Crozet <sebcrozet@dimforge.com>2024-03-17 21:24:28 +0100
commitecd308338b189ab569816a38a03e3f8b89669dde (patch)
treefa612abff2f23ea6a5ff04c64c07296d9fb065c8 /src/dynamics/joint/fixed_joint.rs
parentda92e5c2837b27433286cf0dd9d887fd44dda254 (diff)
downloadrapier-bevy-glam.tar.gz
rapier-bevy-glam.tar.bz2
rapier-bevy-glam.zip
feat: start experimenting with a glam/bevy versionbevy-glam
Diffstat (limited to 'src/dynamics/joint/fixed_joint.rs')
-rw-r--r--src/dynamics/joint/fixed_joint.rs26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/dynamics/joint/fixed_joint.rs b/src/dynamics/joint/fixed_joint.rs
index 2bb2f64..f5a0250 100644
--- a/src/dynamics/joint/fixed_joint.rs
+++ b/src/dynamics/joint/fixed_joint.rs
@@ -1,5 +1,5 @@
use crate::dynamics::{GenericJoint, GenericJointBuilder, JointAxesMask};
-use crate::math::{Isometry, Point, Real};
+use crate::math::*;
#[cfg_attr(feature = "serde-serialize", derive(Serialize, Deserialize))]
#[derive(Copy, Clone, Debug, PartialEq)]
@@ -37,48 +37,48 @@ impl FixedJoint {
/// The joint’s frame, expressed in the first rigid-body’s local-space.
#[must_use]
- pub fn local_frame1(&self) -> &Isometry<Real> {
+ pub fn local_frame1(&self) -> &Isometry {
&self.data.local_frame1
}
/// Sets the joint’s frame, expressed in the first rigid-body’s local-space.
- pub fn set_local_frame1(&mut self, local_frame: Isometry<Real>) -> &mut Self {
+ pub fn set_local_frame1(&mut self, local_frame: Isometry) -> &mut Self {
self.data.set_local_frame1(local_frame);
self
}
/// The joint’s frame, expressed in the second rigid-body’s local-space.
#[must_use]
- pub fn local_frame2(&self) -> &Isometry<Real> {
+ pub fn local_frame2(&self) -> &Isometry {
&self.data.local_frame2
}
/// Sets joint’s frame, expressed in the second rigid-body’s local-space.
- pub fn set_local_frame2(&mut self, local_frame: Isometry<Real>) -> &mut Self {
+ pub fn set_local_frame2(&mut self, local_frame: Isometry) -> &mut Self {
self.data.set_local_frame2(local_frame);
self
}
/// The joint’s anchor, expressed in the local-space of the first rigid-body.
#[must_use]
- pub fn local_anchor1(&self) -> Point<Real> {
+ pub fn local_anchor1(&self) -> Point {
self.data.local_anchor1()
}
/// Sets the joint’s anchor, expressed in the local-space of the first rigid-body.
- pub fn set_local_anchor1(&mut self, anchor1: Point<Real>) -> &mut Self {
+ pub fn set_local_anchor1(&mut self, anchor1: Point) -> &mut Self {
self.data.set_local_anchor1(anchor1);
self
}
/// The joint’s anchor, expressed in the local-space of the second rigid-body.
#[must_use]
- pub fn local_anchor2(&self) -> Point<Real> {
+ pub fn local_anchor2(&self) -> Point {
self.data.local_anchor2()
}
/// Sets the joint’s anchor, expressed in the local-space of the second rigid-body.
- pub fn set_local_anchor2(&mut self, anchor2: Point<Real>) -> &mut Self {
+ pub fn set_local_anchor2(&mut self, anchor2: Point) -> &mut Self {
self.data.set_local_anchor2(anchor2);
self
}
@@ -110,28 +110,28 @@ impl FixedJointBuilder {
/// Sets the joint’s frame, expressed in the first rigid-body’s local-space.
#[must_use]
- pub fn local_frame1(mut self, local_frame: Isometry<Real>) -> Self {
+ pub fn local_frame1(mut self, local_frame: Isometry) -> Self {
self.0.set_local_frame1(local_frame);
self
}
/// Sets joint’s frame, expressed in the second rigid-body’s local-space.
#[must_use]
- pub fn local_frame2(mut self, local_frame: Isometry<Real>) -> Self {
+ pub fn local_frame2(mut self, local_frame: Isometry) -> Self {
self.0.set_local_frame2(local_frame);
self
}
/// Sets the joint’s anchor, expressed in the local-space of the first rigid-body.
#[must_use]
- pub fn local_anchor1(mut self, anchor1: Point<Real>) -> Self {
+ pub fn local_anchor1(mut self, anchor1: Point) -> Self {
self.0.set_local_anchor1(anchor1);
self
}
/// Sets the joint’s anchor, expressed in the local-space of the second rigid-body.
#[must_use]
- pub fn local_anchor2(mut self, anchor2: Point<Real>) -> Self {
+ pub fn local_anchor2(mut self, anchor2: Point) -> Self {
self.0.set_local_anchor2(anchor2);
self
}