04-04-2024, 08:14 AM
Hi Kodra,
The ObiSoftbody's parameters are multipliers: they will take whatever per-particle values you set in the blueprint and multiply them with a global value. So in this case, 0.8 *0.4 = 0.32.
Should you need to change this, you can find the implementation in ObiShapeMatchingConstraints.cs, line 182-ish:
user.deformationResistance would be the value set by the ObiSoftbody component, while batch.materialParameters[i * 5] is the value set for each individual constraint in the blueprint editor.
kind regards,
The ObiSoftbody's parameters are multipliers: they will take whatever per-particle values you set in the blueprint and multiply them with a global value. So in this case, 0.8 *0.4 = 0.32.
Should you need to change this, you can find the implementation in ObiShapeMatchingConstraints.cs, line 182-ish:
Code:
materialParameters[(m_ActiveConstraintCount + i) * 5] = batch.materialParameters[i * 5] * user.deformationResistance;
user.deformationResistance would be the value set by the ObiSoftbody component, while batch.materialParameters[i * 5] is the value set for each individual constraint in the blueprint editor.
kind regards,