FrictionEquation Class
约束沿切线方向接触的滑动。
项目索引
方法
Methods
addToWlambda
-
deltalambda
添加约束速度到刚体中
参数:
-
deltalambdaNumber
computeB
()
Number
计算SPOOK 方程的RHS 值(Computes the RHS of the SPOOK equation)
Returns:
computeGq
()
Number
计算G值乘以q(q 为广义刚体坐标)
Returns:
computeGW
()
Number
计算G值乘以W(W 为刚体的速度)
Returns:
computeGWlambda
()
Number
计算G值乘以W lambda (W 为刚体的速度)
Returns:
computeInvC
-
eps
计算SPOOK等式的分母部分:C = G * inv(M)* G'+ eps
参数:
-
epsNumber
Returns:
getSlipForce
()
Number
获取最大作用力 for the constraint.
Returns:
gmult
()
Number
将雅可比项乘以相应的位置或速度
Returns:
setSlipForce
-
slipForce
设置约束的滑动条件,摩擦力不能大于这个值。
参数:
-
slipForceNumber
Properties
contactEquations
ContactEquation
ContactEquations connected to this friction equation. The contact equations can be used to rescale the max force for the friction. If more than one contact equation is given, then the max force can be set to the average.
contactPointA
Array
Relative vector from center of body A to the contact point, world oriented.
contactPointB
Array
Relative vector from center of body B to the contact point, world oriented.
enabled
Boolean
设置或获取当前方程式的可用状态,如果为true, 它将被添加到求解中
frictionCoefficient
Number
The friction coefficient to use.
maxForce
Number
求解时施加的最大作用力
minForce
Number
求解时施加的最小作用力
multiplier
Number
由上一次求解得到的约束乘数,大致相当于约束所产生的作用力
needsUpdate
Boolean
标志刚度或弛豫是否改变
relativeVelocity
Number
相对速度
relaxation
Number
稳定约束方程所需的步进, 通常为3到5个步进
stiffness
Number
约束方程的刚度,通常使用一个较大的数字(〜1e7),但也可以自由设置一个数字以获得比较稳定的模拟
t
Array
面向世界的摩擦力作用的切线矢量。
