Obi Official Forum

Full Version: Collision detection via script / disable force
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
(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.
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.
(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.
Ah, ok, thank you!

It was my fault.