Add LeastSquaresResidualThreshold and RestitutionVelocityThreshold to ContactSolverInfo
This commit is contained in:
Родитель
f9dcc55124
Коммит
fa5caf612b
|
@ -74,6 +74,12 @@ namespace BulletSharp
|
|||
set => btContactSolverInfoData_setGlobalCfm(Native, value);
|
||||
}
|
||||
|
||||
public float LeastSquaresResidualThreshold
|
||||
{
|
||||
get => btContactSolverInfoData_getLeastSquaresResidualThreshold(Native);
|
||||
set => btContactSolverInfoData_setLeastSquaresResidualThreshold(Native, value);
|
||||
}
|
||||
|
||||
public float LinearSlop
|
||||
{
|
||||
get => btContactSolverInfoData_getLinearSlop(Native);
|
||||
|
@ -116,6 +122,12 @@ namespace BulletSharp
|
|||
set => btContactSolverInfoData_setRestitution(Native, value);
|
||||
}
|
||||
|
||||
public float RestitutionVelocityThreshold
|
||||
{
|
||||
get => btContactSolverInfoData_getRestitutionVelocityThreshold(Native);
|
||||
set => btContactSolverInfoData_setRestitutionVelocityThreshold(Native, value);
|
||||
}
|
||||
|
||||
public float SingleAxisRollingFrictionThreshold
|
||||
{
|
||||
get => btContactSolverInfoData_getSingleAxisRollingFrictionThreshold(Native);
|
||||
|
|
|
@ -1386,6 +1386,8 @@ namespace BulletSharp
|
|||
[DllImport(Native.Dll, CallingConvention = Native.Conv)]
|
||||
public static extern float btContactSolverInfoData_getGlobalCfm(IntPtr obj);
|
||||
[DllImport(Native.Dll, CallingConvention = Native.Conv)]
|
||||
public static extern float btContactSolverInfoData_getLeastSquaresResidualThreshold(IntPtr obj);
|
||||
[DllImport(Native.Dll, CallingConvention = Native.Conv)]
|
||||
public static extern float btContactSolverInfoData_getLinearSlop(IntPtr obj);
|
||||
[DllImport(Native.Dll, CallingConvention = Native.Conv)]
|
||||
public static extern float btContactSolverInfoData_getMaxErrorReduction(IntPtr obj);
|
||||
|
@ -1400,6 +1402,8 @@ namespace BulletSharp
|
|||
[DllImport(Native.Dll, CallingConvention = Native.Conv)]
|
||||
public static extern float btContactSolverInfoData_getRestitution(IntPtr obj);
|
||||
[DllImport(Native.Dll, CallingConvention = Native.Conv)]
|
||||
public static extern float btContactSolverInfoData_getRestitutionVelocityThreshold(IntPtr obj);
|
||||
[DllImport(Native.Dll, CallingConvention = Native.Conv)]
|
||||
public static extern float btContactSolverInfoData_getSingleAxisRollingFrictionThreshold(IntPtr obj);
|
||||
[DllImport(Native.Dll, CallingConvention = Native.Conv)]
|
||||
public static extern SolverModes btContactSolverInfoData_getSolverMode(IntPtr obj);
|
||||
|
@ -1432,6 +1436,8 @@ namespace BulletSharp
|
|||
[DllImport(Native.Dll, CallingConvention = Native.Conv)]
|
||||
public static extern void btContactSolverInfoData_setGlobalCfm(IntPtr obj, float value);
|
||||
[DllImport(Native.Dll, CallingConvention = Native.Conv)]
|
||||
public static extern void btContactSolverInfoData_setLeastSquaresResidualThreshold(IntPtr obj, float value);
|
||||
[DllImport(Native.Dll, CallingConvention = Native.Conv)]
|
||||
public static extern void btContactSolverInfoData_setLinearSlop(IntPtr obj, float value);
|
||||
[DllImport(Native.Dll, CallingConvention = Native.Conv)]
|
||||
public static extern void btContactSolverInfoData_setMaxErrorReduction(IntPtr obj, float value);
|
||||
|
@ -1446,6 +1452,8 @@ namespace BulletSharp
|
|||
[DllImport(Native.Dll, CallingConvention = Native.Conv)]
|
||||
public static extern void btContactSolverInfoData_setRestitution(IntPtr obj, float value);
|
||||
[DllImport(Native.Dll, CallingConvention = Native.Conv)]
|
||||
public static extern void btContactSolverInfoData_setRestitutionVelocityThreshold(IntPtr obj, float value);
|
||||
[DllImport(Native.Dll, CallingConvention = Native.Conv)]
|
||||
public static extern void btContactSolverInfoData_setSingleAxisRollingFrictionThreshold(IntPtr obj, float value);
|
||||
[DllImport(Native.Dll, CallingConvention = Native.Conv)]
|
||||
public static extern void btContactSolverInfoData_setSolverMode(IntPtr obj, SolverModes value);
|
||||
|
|
|
@ -42,6 +42,11 @@ btScalar btContactSolverInfoData_getGlobalCfm(btContactSolverInfoData* obj)
|
|||
return obj->m_globalCfm;
|
||||
}
|
||||
|
||||
btScalar btContactSolverInfoData_getLeastSquaresResidualThreshold(btContactSolverInfoData* obj)
|
||||
{
|
||||
return obj->m_leastSquaresResidualThreshold;
|
||||
}
|
||||
|
||||
btScalar btContactSolverInfoData_getLinearSlop(btContactSolverInfoData* obj)
|
||||
{
|
||||
return obj->m_linearSlop;
|
||||
|
@ -77,6 +82,11 @@ btScalar btContactSolverInfoData_getRestitution(btContactSolverInfoData* obj)
|
|||
return obj->m_restitution;
|
||||
}
|
||||
|
||||
btScalar btContactSolverInfoData_getRestitutionVelocityThreshold(btContactSolverInfoData* obj)
|
||||
{
|
||||
return obj->m_restitutionVelocityThreshold;
|
||||
}
|
||||
|
||||
btScalar btContactSolverInfoData_getSingleAxisRollingFrictionThreshold(btContactSolverInfoData* obj)
|
||||
{
|
||||
return obj->m_singleAxisRollingFrictionThreshold;
|
||||
|
@ -157,6 +167,11 @@ void btContactSolverInfoData_setGlobalCfm(btContactSolverInfoData* obj, btScalar
|
|||
obj->m_globalCfm = value;
|
||||
}
|
||||
|
||||
void btContactSolverInfoData_setLeastSquaresResidualThreshold(btContactSolverInfoData* obj, btScalar value)
|
||||
{
|
||||
obj->m_leastSquaresResidualThreshold = value;
|
||||
}
|
||||
|
||||
void btContactSolverInfoData_setLinearSlop(btContactSolverInfoData* obj, btScalar value)
|
||||
{
|
||||
obj->m_linearSlop = value;
|
||||
|
@ -195,6 +210,11 @@ void btContactSolverInfoData_setRestitution(btContactSolverInfoData* obj, btScal
|
|||
obj->m_restitution = value;
|
||||
}
|
||||
|
||||
void btContactSolverInfoData_setRestitutionVelocityThreshold(btContactSolverInfoData* obj, btScalar value)
|
||||
{
|
||||
obj->m_restitutionVelocityThreshold = value;
|
||||
}
|
||||
|
||||
void btContactSolverInfoData_setSingleAxisRollingFrictionThreshold(btContactSolverInfoData* obj,
|
||||
btScalar value)
|
||||
{
|
||||
|
|
|
@ -11,6 +11,7 @@ extern "C" {
|
|||
EXPORT btScalar btContactSolverInfoData_getFrictionCfm(btContactSolverInfoData* obj);
|
||||
EXPORT btScalar btContactSolverInfoData_getFrictionErp(btContactSolverInfoData* obj);
|
||||
EXPORT btScalar btContactSolverInfoData_getGlobalCfm(btContactSolverInfoData* obj);
|
||||
EXPORT btScalar btContactSolverInfoData_getLeastSquaresResidualThreshold(btContactSolverInfoData* obj);
|
||||
EXPORT btScalar btContactSolverInfoData_getLinearSlop(btContactSolverInfoData* obj);
|
||||
EXPORT btScalar btContactSolverInfoData_getMaxErrorReduction(btContactSolverInfoData* obj);
|
||||
EXPORT btScalar btContactSolverInfoData_getMaxGyroscopicForce(btContactSolverInfoData* obj);
|
||||
|
@ -18,6 +19,7 @@ extern "C" {
|
|||
EXPORT int btContactSolverInfoData_getNumIterations(btContactSolverInfoData* obj);
|
||||
EXPORT int btContactSolverInfoData_getRestingContactRestitutionThreshold(btContactSolverInfoData* obj);
|
||||
EXPORT btScalar btContactSolverInfoData_getRestitution(btContactSolverInfoData* obj);
|
||||
EXPORT btScalar btContactSolverInfoData_getRestitutionVelocityThreshold(btContactSolverInfoData* obj);
|
||||
EXPORT btScalar btContactSolverInfoData_getSingleAxisRollingFrictionThreshold(btContactSolverInfoData* obj);
|
||||
EXPORT int btContactSolverInfoData_getSolverMode(btContactSolverInfoData* obj);
|
||||
EXPORT btScalar btContactSolverInfoData_getSor(btContactSolverInfoData* obj);
|
||||
|
@ -34,6 +36,7 @@ extern "C" {
|
|||
EXPORT void btContactSolverInfoData_setFrictionCfm(btContactSolverInfoData* obj, btScalar value);
|
||||
EXPORT void btContactSolverInfoData_setFrictionErp(btContactSolverInfoData* obj, btScalar value);
|
||||
EXPORT void btContactSolverInfoData_setGlobalCfm(btContactSolverInfoData* obj, btScalar value);
|
||||
EXPORT void btContactSolverInfoData_setLeastSquaresResidualThreshold(btContactSolverInfoData* obj, btScalar value);
|
||||
EXPORT void btContactSolverInfoData_setLinearSlop(btContactSolverInfoData* obj, btScalar value);
|
||||
EXPORT void btContactSolverInfoData_setMaxErrorReduction(btContactSolverInfoData* obj, btScalar value);
|
||||
EXPORT void btContactSolverInfoData_setMaxGyroscopicForce(btContactSolverInfoData* obj, btScalar value);
|
||||
|
@ -41,6 +44,7 @@ extern "C" {
|
|||
EXPORT void btContactSolverInfoData_setNumIterations(btContactSolverInfoData* obj, int value);
|
||||
EXPORT void btContactSolverInfoData_setRestingContactRestitutionThreshold(btContactSolverInfoData* obj, int value);
|
||||
EXPORT void btContactSolverInfoData_setRestitution(btContactSolverInfoData* obj, btScalar value);
|
||||
EXPORT void btContactSolverInfoData_setRestitutionVelocityThreshold(btContactSolverInfoData* obj, btScalar value);
|
||||
EXPORT void btContactSolverInfoData_setSingleAxisRollingFrictionThreshold(btContactSolverInfoData* obj, btScalar value);
|
||||
EXPORT void btContactSolverInfoData_setSolverMode(btContactSolverInfoData* obj, int value);
|
||||
EXPORT void btContactSolverInfoData_setSor(btContactSolverInfoData* obj, btScalar value);
|
||||
|
|
Загрузка…
Ссылка в новой задаче