Lines Matching defs:btSoftBody
15 ///btSoftBody implementation by Nathanael Presson
24 btSoftBody::btSoftBody(btSoftBodyWorldInfo* worldInfo,int node_count, const btVector3* x, const btScalar* m)
55 btSoftBody::btSoftBody(btSoftBodyWorldInfo* worldInfo)
62 void btSoftBody::initDefaults()
117 btSoftBody::~btSoftBody()
131 bool btSoftBody::checkLink(int node0,int node1) const
137 bool btSoftBody::checkLink(const Node* node0,const Node* node1) const
153 bool btSoftBody::checkFace(int node0,int node1,int node2) const
174 btSoftBody::Material* btSoftBody::appendMaterial()
186 void btSoftBody::appendNote( const char* text,
211 void btSoftBody::appendNote( const char* text,
219 void btSoftBody::appendNote( const char* text,
229 void btSoftBody::appendNote( const char* text,
240 void btSoftBody::appendNode( const btVector3& x,btScalar m)
260 void btSoftBody::appendLink(int model,Material* mat)
271 void btSoftBody::appendLink( int node0,
280 void btSoftBody::appendLink( Node* node0,
297 void btSoftBody::appendFace(int model,Material* mat)
308 void btSoftBody::appendFace(int node0,int node1,int node2,Material* mat)
332 void btSoftBody::appendTetra(int model,Material* mat)
343 void btSoftBody::appendTetra(int node0,
361 void btSoftBody::appendAnchor(int node,btRigidBody* body, bool disableCollisionBetweenLinkedBodies,btScalar influence)
368 void btSoftBody::appendAnchor(int node,btRigidBody* body, const btVector3& localPivot,bool disableCollisionBetweenLinkedBodies,btScalar influence)
388 void btSoftBody::appendLinearJoint(const LJoint::Specs& specs,Cluster* body0,Body body1)
402 void btSoftBody::appendLinearJoint(const LJoint::Specs& specs,Body body)
408 void btSoftBody::appendLinearJoint(const LJoint::Specs& specs,btSoftBody* body)
414 void btSoftBody::appendAngularJoint(const AJoint::Specs& specs,Cluster* body0,Body body1)
429 void btSoftBody::appendAngularJoint(const AJoint::Specs& specs,Body body)
435 void btSoftBody::appendAngularJoint(const AJoint::Specs& specs,btSoftBody* body)
441 void btSoftBody::addForce(const btVector3& force)
447 void btSoftBody::addForce(const btVector3& force,int node)
456 void btSoftBody::addAeroForceToNode(const btVector3& windVelocity,int nodeIndex)
468 const bool as_vaero = as_aero && (m_cfg.aeromodel < btSoftBody::eAeroModel::F_TwoSided);
474 btSoftBody::sMedium medium;
492 if (m_cfg.aeromodel == btSoftBody::eAeroModel::V_TwoSidedLiftDrag)
523 else if (m_cfg.aeromodel == btSoftBody::eAeroModel::V_Point || m_cfg.aeromodel == btSoftBody::eAeroModel::V_OneSided || m_cfg.aeromodel == btSoftBody::eAeroModel::V_TwoSided)
525 if (btSoftBody::eAeroModel::V_TwoSided)
545 void btSoftBody::addAeroForceToFace(const btVector3& windVelocity,int faceIndex)
555 const bool as_faero = as_aero && (m_cfg.aeromodel >= btSoftBody::eAeroModel::F_TwoSided);
559 btSoftBody::Face& f=m_faces[faceIndex];
561 btSoftBody::sMedium medium;
577 if (m_cfg.aeromodel == btSoftBody::eAeroModel::F_TwoSidedLiftDrag)
618 btSoftBody::eAeroModel::F_OneSided || m_cfg.aeromodel == btSoftBody::eAeroModel::F_TwoSided)
620 if (btSoftBody::eAeroModel::F_TwoSided)
642 void btSoftBody::addVelocity(const btVector3& velocity)
648 void btSoftBody::setVelocity( const btVector3& velocity)
662 void btSoftBody::addVelocity(const btVector3& velocity,int node)
672 void btSoftBody::setMass(int node,btScalar mass)
679 btScalar btSoftBody::getMass(int node) const
685 btScalar btSoftBody::getTotalMass() const
696 void btSoftBody::setTotalMass(btScalar mass,bool fromfaces)
733 void btSoftBody::setTotalDensity(btScalar density)
739 void btSoftBody::setVolumeMass(btScalar mass)
769 void btSoftBody::setVolumeDensity(btScalar density)
784 void btSoftBody::transform(const btTransform& trs)
806 void btSoftBody::translate(const btVector3& trs)
815 void btSoftBody::rotate( const btQuaternion& rot)
824 void btSoftBody::scale(const btVector3& scl)
844 btScalar btSoftBody::getRestLengthScale()
850 void btSoftBody::setRestLengthScale(btScalar restLengthScale)
865 void btSoftBody::setPose(bool bvolume,bool bframe)
915 void btSoftBody::resetLinkRestLengths()
926 btScalar btSoftBody::getVolume() const
945 int btSoftBody::clusterCount() const
951 btVector3 btSoftBody::clusterCom(const Cluster* cluster)
962 btVector3 btSoftBody::clusterCom(int cluster) const
968 btVector3 btSoftBody::clusterVelocity(const Cluster* cluster,const btVector3& rpos)
974 void btSoftBody::clusterVImpulse(Cluster* cluster,const btVector3& rpos,const btVector3& impulse)
984 void btSoftBody::clusterDImpulse(Cluster* cluster,const btVector3& rpos,const btVector3& impulse)
994 void btSoftBody::clusterImpulse(Cluster* cluster,const btVector3& rpos,const Impulse& impulse)
1001 void btSoftBody::clusterVAImpulse(Cluster* cluster,const btVector3& impulse)
1009 void btSoftBody::clusterDAImpulse(Cluster* cluster,const btVector3& impulse)
1017 void btSoftBody::clusterAImpulse(Cluster* cluster,const Impulse& impulse)
1024 void btSoftBody::clusterDCImpulse(Cluster* cluster,const btVector3& impulse)
1038 int btSoftBody::generateBendingConstraints(int distance,Material* mat)
1158 void btSoftBody::randomizeConstraints()
1176 void btSoftBody::releaseCluster(int index)
1186 void btSoftBody::releaseClusters()
1192 int btSoftBody::generateClusters(int k,int maxiterations)
1385 void btSoftBody::refine(ImplicitFn* ifn,btScalar accurary,bool cut)
1636 bool btSoftBody::cutLink(const Node* node0,const Node* node1,btScalar position)
1642 bool btSoftBody::cutLink(int node0,int node1,btScalar position)
1697 bool btSoftBody::rayTest(const btVector3& rayFrom,
1713 void btSoftBody::setSolver(eSolverPresets::_ preset)
1739 void btSoftBody::predictMotion(btScalar dt)
1847 void btSoftBody::solveConstraints()
1941 void btSoftBody::staticSolve(int iterations)
1953 void btSoftBody::solveCommonConstraints(btSoftBody** /*bodies*/,int /*count*/,int /*iterations*/)
1959 void btSoftBody::solveClusters(const btAlignedObjectArray<btSoftBody*>& bodies)
1988 void btSoftBody::integrateMotion()
1995 btSoftBody::RayFromToCaster::RayFromToCaster(const btVector3& rayFrom,const btVector3& rayTo,btScalar mxt)
2006 void btSoftBody::RayFromToCaster::Process(const btDbvtNode* leaf)
2008 btSoftBody::Face& f=*(btSoftBody::Face*)leaf->data;
2022 btScalar btSoftBody::RayFromToCaster::rayFromToTriangle( const btVector3& rayFrom,
2055 void btSoftBody::pointersToIndices()
2057 #define PTR2IDX(_p_,_b_) reinterpret_cast<btSoftBody::Node*>((_p_)-(_b_))
2058 btSoftBody::Node* base=m_nodes.size() ? &m_nodes[0] : 0;
2098 void btSoftBody::indicesToPointers(const int* map)
2102 btSoftBody::Node* base=m_nodes.size() ? &m_nodes[0]:0;
2142 int btSoftBody::rayTest(const btVector3& rayFrom,const btVector3& rayTo,
2154 const btSoftBody::Face& f=m_faces[i];
2166 feature=btSoftBody::eFeature::Face;
2181 feature=btSoftBody::eFeature::Face;
2189 const btSoftBody::Tetra& tet = m_tetras[i];
2210 feature=btSoftBody::eFeature::Tetra;
2221 void btSoftBody::initializeFaceTree()
2232 btVector3 btSoftBody::evaluateCom() const
2246 bool btSoftBody::checkContact( const btCollisionObjectWrapper* colObjWrap,
2249 btSoftBody::sCti& cti) const
2275 void btSoftBody::updateNormals()
2287 btSoftBody::Face& f=m_faces[i];
2304 void btSoftBody::updateBounds()
2346 void btSoftBody::updatePose()
2350 btSoftBody::Pose& pose=m_pose;
2382 void btSoftBody::updateArea(bool averageArea)
2405 btSoftBody::Face& f=m_faces[i];
2431 btSoftBody::Face& f=m_faces[i];
2447 void btSoftBody::updateLinkConstants()
2460 void btSoftBody::updateConstants()
2470 void btSoftBody::initializeClusters()
2492 c.m_com = btSoftBody::clusterCom(&c);
2536 void btSoftBody::updateClusters()
2543 btSoftBody::Cluster& c=*m_clusters[i];
2654 void btSoftBody::cleanupClusters()
2668 void btSoftBody::prepareClusters(int iterations)
2678 void btSoftBody::solveClusters(btScalar sor)
2687 void btSoftBody::applyClusters(bool drift)
2738 void btSoftBody::dampClusters()
2764 void btSoftBody::Joint::Prepare(btScalar dt,int)
2771 void btSoftBody::LJoint::Prepare(btScalar dt,int iterations)
2791 void btSoftBody::LJoint::Solve(btScalar dt,btScalar sor)
2796 btSoftBody::Impulse impulse;
2804 void btSoftBody::LJoint::Terminate(btScalar dt)
2814 void btSoftBody::AJoint::Prepare(btScalar dt,int iterations)
2834 void btSoftBody::AJoint::Solve(btScalar dt,btScalar sor)
2841 btSoftBody::Impulse impulse;
2849 void btSoftBody::AJoint::Terminate(btScalar dt)
2859 void btSoftBody::CJoint::Prepare(btScalar dt,int iterations)
2881 void btSoftBody::CJoint::Solve(btScalar dt,btScalar sor)
2887 btSoftBody::Impulse impulse;
2923 void btSoftBody::CJoint::Terminate(btScalar dt)
2933 void btSoftBody::applyForces()
2949 // (m_cfg.aeromodel < btSoftBody::eAeroModel::F_TwoSided);
2951 // (m_cfg.aeromodel >= btSoftBody::eAeroModel::F_TwoSided);
2958 btSoftBody::sMedium medium;
2970 btSoftBody::Node& n=m_nodes[i];
2994 // btSoftBody::Face& f=m_faces[i];
3002 void btSoftBody::PSolve_Anchors(btSoftBody* psb,btScalar kst,btScalar ti)
3022 void btSoftBody::PSolve_RContacts(btSoftBody* psb, btScalar kst, btScalar ti)
3052 void btSoftBody::PSolve_SContacts(btSoftBody* psb,btScalar,btScalar ti)
3085 void btSoftBody::PSolve_Links(btSoftBody* psb,btScalar kst,btScalar ti)
3107 void btSoftBody::VSolve_Links(btSoftBody* psb,btScalar kst)
3120 btSoftBody::psolver_t btSoftBody::getSolver(ePSolver::_ solver)
3125 return(&btSoftBody::PSolve_Anchors);
3127 return(&btSoftBody::PSolve_Links);
3129 return(&btSoftBody::PSolve_RContacts);
3131 return(&btSoftBody::PSolve_SContacts);
3140 btSoftBody::vsolver_t btSoftBody::getSolver(eVSolver::_ solver)
3144 case eVSolver::Linear: return(&btSoftBody::VSolve_Links);
3153 void btSoftBody::defaultCollisionHandler(const btCollisionObjectWrapper* pcoWrap)
3194 void btSoftBody::defaultCollisionHandler(btSoftBody* psb)
3244 void btSoftBody::setWindVelocity( const btVector3 &velocity )
3250 const btVector3& btSoftBody::getWindVelocity()
3257 int btSoftBody::calculateSerializeBufferSize() const
3264 const char* btSoftBody::serialize(void* dataBuffer, class btSerializer* serializer) const
3284 btSoftBody::Material* mat = m_materials[i];