Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Collision detection via script / disable force
#1
Hi!

1. Is it possible to request collisions via script (like OnParticleCollision)?
2. The particles shouldn't add force to other rigid bodies. Is it possible to disable it?

Thank you!
Kalidor
Reply
#2
(28-09-2017, 11:24 AM)Kalidor Wrote: Hi!

1. Is it possible to request collisions via script (like OnParticleCollision)?
2. The particles shouldn't add force to other rigid bodies. Is it possible to disable it?

Thank you!
Kalidor

1. Yes! see: http://obi.virtualmethodstudio.com/tutor...sions.html
2. Enable "kinematic for particles" in the ObiCollider inspector.
Reply
#3
Do you mean to check "Kinematic For Particles" in the "Obi Rigidbody" component of the game object?
When it's enabled the particles' force is still there.
Reply
#4
(29-09-2017, 07:42 AM)Kalidor Wrote: Do you mean to check "Kinematic For Particles" in the "Obi Rigidbody" component of the game object?
When it's enabled the particles' force is still there.

Yes sorry, I meant ObiRigidbody, not ObiCollider.
However I cannot reproduce the behavior you describe. When I enable kinematic for particles, the rigidbody stops "feeling" the particles. The particles are however still affected by the rigidbody, which is the intended behavior.

You can test it in the "FluidMill" sample scene. If you enable "kinematic for particles" in the mill rigidbody, it will stop spinning when the particles hit it.
Reply
#5
Ah, ok, thank you!

It was my fault.
Reply