(08-09-2020, 08:11 AM)josemendez Wrote: Hey, thanks for quick reply!
Code:[SerializeField] private ObiSolver solver;
[SerializeField] private ObiRope rope;
public void Init(ILevelContext controller)
{
}
private void Awake()
{
solver.OnParticleCollision += Solver_OnParticleCollision;
}
private void Solver_OnParticleCollision(ObiSolver solver, ObiSolver.ObiCollisionEventArgs args)
{
Debug.LogError($"Contacts count: {args.contacts.Count}");
for (int i = 0; i < args.contacts.Count; ++i)
{
if (args.contacts.Data[i].distance < 0)
{
}
else
{
}
}
}
This is the implementation and log message says it's 0 no matter what
And by docs I meant tutorials, sorry : http://obi.virtualmethodstudio.com/tutor...sions.html