mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Fix inconsistent Joint3DSW copy constructor and assignment declarations
This commit is contained in:
parent
e20011b0da
commit
c013361bdc
@ -103,19 +103,6 @@ public:
|
|||||||
m_enableLimit = false;
|
m_enableLimit = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
G6DOFRotationalLimitMotor3DSW(const G6DOFRotationalLimitMotor3DSW &limot) {
|
|
||||||
m_targetVelocity = limot.m_targetVelocity;
|
|
||||||
m_maxMotorForce = limot.m_maxMotorForce;
|
|
||||||
m_limitSoftness = limot.m_limitSoftness;
|
|
||||||
m_loLimit = limot.m_loLimit;
|
|
||||||
m_hiLimit = limot.m_hiLimit;
|
|
||||||
m_ERP = limot.m_ERP;
|
|
||||||
m_bounce = limot.m_bounce;
|
|
||||||
m_currentLimit = limot.m_currentLimit;
|
|
||||||
m_currentLimitError = limot.m_currentLimitError;
|
|
||||||
m_enableMotor = limot.m_enableMotor;
|
|
||||||
}
|
|
||||||
|
|
||||||
//! Is limited
|
//! Is limited
|
||||||
bool isLimited() {
|
bool isLimited() {
|
||||||
return (m_loLimit < m_hiLimit);
|
return (m_loLimit < m_hiLimit);
|
||||||
@ -163,16 +150,6 @@ public:
|
|||||||
enable_limit[2] = true;
|
enable_limit[2] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
G6DOFTranslationalLimitMotor3DSW(const G6DOFTranslationalLimitMotor3DSW &other) {
|
|
||||||
m_lowerLimit = other.m_lowerLimit;
|
|
||||||
m_upperLimit = other.m_upperLimit;
|
|
||||||
m_accumulatedImpulse = other.m_accumulatedImpulse;
|
|
||||||
|
|
||||||
m_limitSoftness = other.m_limitSoftness;
|
|
||||||
m_damping = other.m_damping;
|
|
||||||
m_restitution = other.m_restitution;
|
|
||||||
}
|
|
||||||
|
|
||||||
//! Test limit
|
//! Test limit
|
||||||
/*!
|
/*!
|
||||||
- free means upper < lower,
|
- free means upper < lower,
|
||||||
@ -242,11 +219,8 @@ protected:
|
|||||||
|
|
||||||
//!@}
|
//!@}
|
||||||
|
|
||||||
Generic6DOFJoint3DSW &operator=(Generic6DOFJoint3DSW &other) {
|
Generic6DOFJoint3DSW(Generic6DOFJoint3DSW const &) = delete;
|
||||||
ERR_PRINT("pito");
|
void operator=(Generic6DOFJoint3DSW const &) = delete;
|
||||||
(void)other;
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
void buildLinearJacobian(
|
void buildLinearJacobian(
|
||||||
JacobianEntry3DSW &jacLinear, const Vector3 &normalWorld,
|
JacobianEntry3DSW &jacLinear, const Vector3 &normalWorld,
|
||||||
|
Loading…
Reference in New Issue
Block a user