25-06-2017, 10:38 AM
Hello
We are working on a project, where we shoot a rigidbody spherical object onto an Obi cloth object.
Sometimes the object collides well with the cloth object but many time it just passes through.
I read about how the interaction works by the use of the physics material so I changed some values
which made it better looking results but I am still getting it to pass through the cloth object.
How can I totally prevent the rigidbody from doing that?
Or if I can't, how can I get the OnObjectCollision method for either the rigidbody or the cloth
so I can reduce the velocity of the rigidbody.
I tried doing that via the 'CollisionEventHandler' class but it keeps on printing everytime the solver and not
the interacting object.
Thanks.
We are working on a project, where we shoot a rigidbody spherical object onto an Obi cloth object.
Sometimes the object collides well with the cloth object but many time it just passes through.
I read about how the interaction works by the use of the physics material so I changed some values
which made it better looking results but I am still getting it to pass through the cloth object.
How can I totally prevent the rigidbody from doing that?
Or if I can't, how can I get the OnObjectCollision method for either the rigidbody or the cloth
so I can reduce the velocity of the rigidbody.
I tried doing that via the 'CollisionEventHandler' class but it keeps on printing everytime the solver and not
the interacting object.
Thanks.