コード例 #1
0
		public void setConstraintRowSolverGeneric( btSingleConstraintRowSolver rowSolver )
		{
			m_resolveSingleConstraintRowGeneric = rowSolver;
		}
コード例 #2
0
		public void setConstraintRowSolverLowerLimit( btSingleConstraintRowSolver rowSolver )
		{
			m_resolveSingleConstraintRowLowerLimit = rowSolver;
		}
コード例 #3
0
		public btSequentialImpulseConstraintSolver()
		{
			m_resolveSingleConstraintRowGeneric = ( gResolveSingleConstraintRowGeneric_scalar_reference );
			m_resolveSingleConstraintRowLowerLimit = ( gResolveSingleConstraintRowLowerLimit_scalar_reference );
			m_btSeed2 = ( 0 );

#if USE_SIMD
	 m_resolveSingleConstraintRowGeneric = gResolveSingleConstraintRowGeneric_sse2;
	 m_resolveSingleConstraintRowLowerLimit=gResolveSingleConstraintRowLowerLimit_sse2;
#endif //USE_SIMD

#if BT_ALLOW_SSE4
	 int cpuFeatures = btCpuFeatureUtility::getCpuFeatures();
	 if ((cpuFeatures & btCpuFeatureUtility::CPU_FEATURE_FMA3) && (cpuFeatures & btCpuFeatureUtility::CPU_FEATURE_SSE4_1))
	 {
		m_resolveSingleConstraintRowGeneric = gResolveSingleConstraintRowGeneric_sse4_1_fma3;
		m_resolveSingleConstraintRowLowerLimit = gResolveSingleConstraintRowLowerLimit_sse4_1_fma3;
	 }
#endif//BT_ALLOW_SSE4

		}