25-09-2020, 09:40 AM
Hello everyone, I haven't done anything I want to do on Unity:
I could not find how to use this code with Soft Body without using colliders. In Unity, ready colliders (boxes, sphere) do not sit properly on the object.
private void OnCollisionEnter(Collision collision)
{
if (collision.gameObject.tag == "Glass")
{
CreateLittleWaters();
Destroy(gameObject);
}
else if (collision.gameObject.tag == "Floor")
{
Destroy(gameObject);
}
}
I could not find how to use this code with Soft Body without using colliders. In Unity, ready colliders (boxes, sphere) do not sit properly on the object.
private void OnCollisionEnter(Collision collision)
{
if (collision.gameObject.tag == "Glass")
{
CreateLittleWaters();
Destroy(gameObject);
}
else if (collision.gameObject.tag == "Floor")
{
Destroy(gameObject);
}
}