Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Solver collision contacts count is always 0
#3
(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 Triste
And by docs I meant tutorials, sorry : http://obi.virtualmethodstudio.com/tutor...sions.html
Reply


Messages In This Thread
RE: Solver collision contacts count is always 0 - by dosinis - 08-09-2020, 08:36 AM