Remove unused methods
This commit is contained in:
parent
2751bc5728
commit
cf01689b63
|
@ -62,7 +62,7 @@ struct JointInfo {
|
||||||
JointType type;
|
JointType type;
|
||||||
|
|
||||||
/// Position correction technique used for the constraint (used for joints).
|
/// Position correction technique used for the constraint (used for joints).
|
||||||
/// By default, the BAUMGARTE technique is used
|
/// By default, the NON_LINEAR_GAUSS_SEIDEL technique is used
|
||||||
JointsPositionCorrectionTechnique positionCorrectionTechnique;
|
JointsPositionCorrectionTechnique positionCorrectionTechnique;
|
||||||
|
|
||||||
/// True if the two bodies of the joint are allowed to collide with each other
|
/// True if the two bodies of the joint are allowed to collide with each other
|
||||||
|
|
|
@ -377,9 +377,6 @@ class PhysicsWorld {
|
||||||
/// Set the position correction technique used for contacts
|
/// Set the position correction technique used for contacts
|
||||||
void setContactsPositionCorrectionTechnique(ContactsPositionCorrectionTechnique technique);
|
void setContactsPositionCorrectionTechnique(ContactsPositionCorrectionTechnique technique);
|
||||||
|
|
||||||
/// Set the position correction technique used for joints
|
|
||||||
void setJointsPositionCorrectionTechnique(JointsPositionCorrectionTechnique technique);
|
|
||||||
|
|
||||||
/// Create a rigid body into the physics world.
|
/// Create a rigid body into the physics world.
|
||||||
RigidBody* createRigidBody(const Transform& transform);
|
RigidBody* createRigidBody(const Transform& transform);
|
||||||
|
|
||||||
|
@ -629,20 +626,6 @@ inline void PhysicsWorld::setContactsPositionCorrectionTechnique(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the position correction technique used for joints
|
|
||||||
/**
|
|
||||||
* @param technique Technique used for the joins position correction (Baumgarte or Non Linear Gauss Seidel)
|
|
||||||
*/
|
|
||||||
inline void PhysicsWorld::setJointsPositionCorrectionTechnique(
|
|
||||||
JointsPositionCorrectionTechnique technique) {
|
|
||||||
if (technique == JointsPositionCorrectionTechnique::BAUMGARTE_JOINTS) {
|
|
||||||
mConstraintSolverSystem.setIsNonLinearGaussSeidelPositionCorrectionActive(false);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
mConstraintSolverSystem.setIsNonLinearGaussSeidelPositionCorrectionActive(true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Return the gravity vector of the world
|
// Return the gravity vector of the world
|
||||||
/**
|
/**
|
||||||
* @return The current gravity vector (in meter per seconds squared)
|
* @return The current gravity vector (in meter per seconds squared)
|
||||||
|
|
|
@ -203,12 +203,6 @@ class ConstraintSolverSystem {
|
||||||
/// Solve the position constraints
|
/// Solve the position constraints
|
||||||
void solvePositionConstraints();
|
void solvePositionConstraints();
|
||||||
|
|
||||||
/// Return true if the Non-Linear-Gauss-Seidel position correction technique is active
|
|
||||||
bool getIsNonLinearGaussSeidelPositionCorrectionActive() const;
|
|
||||||
|
|
||||||
/// Enable/Disable the Non-Linear-Gauss-Seidel position correction technique.
|
|
||||||
void setIsNonLinearGaussSeidelPositionCorrectionActive(bool isActive);
|
|
||||||
|
|
||||||
#ifdef IS_RP3D_PROFILING_ENABLED
|
#ifdef IS_RP3D_PROFILING_ENABLED
|
||||||
|
|
||||||
/// Set the profiler
|
/// Set the profiler
|
||||||
|
|
Loading…
Reference in New Issue
Block a user