20-08-2020, 10:31 PM
Hello Jose,
I'm wondering how I can perform a Raycast to detect if it is colliding with a Softbody.
Perhaps I can create a MeshCollider component and update it to match the current deformation of the Softbody's mesh and detect if the Raycast is colliding with that. Not sure how to get the current deformed mesh of the Softbody if this is even possible/the best option.
Thank you!
I'm wondering how I can perform a Raycast to detect if it is colliding with a Softbody.
Perhaps I can create a MeshCollider component and update it to match the current deformation of the Softbody's mesh and detect if the Raycast is colliding with that. Not sure how to get the current deformed mesh of the Softbody if this is even possible/the best option.
Thank you!