Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/Physics/Bullet/CcdPhysicsController.cpp
| Context not available. | |||||
| CreateRigidbody(); | CreateRigidbody(); | ||||
| } | } | ||||
| void CcdPhysicsController::addCcdConstraintRef(btTypedConstraint* c) | |||||
| { | |||||
| int index = m_CcdonstraintRefs.findLinearSearch(c); | |||||
| if (index == m_CcdonstraintRefs.size()) | |||||
| m_CcdonstraintRefs.push_back(c); | |||||
| } | |||||
| void CcdPhysicsController::removeCcdConstraintRef(btTypedConstraint* c) | |||||
| { | |||||
| m_CcdonstraintRefs.remove(c); | |||||
| } | |||||
| btTypedConstraint* CcdPhysicsController::getCcdConstraintRef(int index) | |||||
| { | |||||
| return m_CcdonstraintRefs[index]; | |||||
| } | |||||
| int CcdPhysicsController::getNumCcdConstraintRefs() const | |||||
| { | |||||
| return m_CcdonstraintRefs.size(); | |||||
| } | |||||
| btTransform& CcdPhysicsController::GetTransformFromMotionState(PHY_IMotionState* motionState) | btTransform& CcdPhysicsController::GetTransformFromMotionState(PHY_IMotionState* motionState) | ||||
| { | { | ||||
| static btTransform trans; | static btTransform trans; | ||||
| Context not available. | |||||