Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Disabling Particle and obi collisions in run time.
#2
(19-03-2018, 11:03 PM)Gieve Wrote: I was wondering what function I would need to call, or how to command the solver to disable collisions on obi ropes from both each other and obi colliders in runtime.

It depends on what level of granularity you need. If you just want to disable all interactions with all rigidbodies and ropes, you can disable particle collisions and regular collisions globally in the solver:

Code:
solver.particleCollisionConstraintParameters.enabled = false;
solver.collisionConstraintParameters.enabled = false;
solver.UpdateParameters();

You could also simply move the colliders you want to skip collisions with to a different layer that's not marked as a collision layer in the solver, or set their phase to be the same as the rope's.

Code:
obiCollider.phase = 1 //assuming your rope particles have a phase value of 1 too.
Reply


Messages In This Thread
RE: Disabling Particle and obi collisions in run time. - by josemendez - 20-03-2018, 09:50 AM