25-08-2022, 10:23 AM
(This post was last modified: 25-08-2022, 10:29 AM by josemendez.)
(25-08-2022, 10:05 AM)khanx078 Wrote: So do i need to remove the mesh colliders
Distance fields are only used to collide against particles. For all other regular objects in the scene, the MeshCollider will still be used. So the MeshCollider still needs to be present. Quoting the manual:
Quote:Distance fields will only generate collisions against Obi particles. They will not collide with other objects, for this you need to use Unity's own colliders.
(25-08-2022, 10:05 AM)khanx078 Wrote: and there is no option to enable the distance field collision like mentioned in the documents, there I created the distance fields and attached them in the distance field area , but as soon as I hit the play button the mesh colliders gets attached automatically.....
In recent versions, the distance field is used automatically as long as there's a distance field assigned to the ObiCollider. Will correct the manual to reflect this.
Note that DistanceFields can be used for any object, regardless of the type of collider you're using for rigidbody physics. You could approximate your bucket with a capsule collider so that other objects in the scene can collide with it, and still have a distance field for collisions against fluid particles.