Hello,
I have observed the exact same issue, where I also use:
But when using GPU mode, the update doesn't seem to properly work or register, while when using the CPU-mode it works flawlessly.
I notice the same when switching colliders on/off, where it is very "flaky" in GPU-mode. I especially observed it with meshcolliders, where it seems to sometimes retain "stale" data, so it looks like its still kinda colliding with the old collider? (very hard to describe what exactly is happening)
So far I have tried a couple of possible workarounds, like deferring the meshdata update by one frame after enabling the collider, but that also didn't fix the issue.
As an explanation of my scene, I only have 1 obiCollider active at a time in my scene and switch between those, through this function:
where I disable the currently active collider first and then enable the new collider. I added the UpdateMeshData function later due to this forum post, but even with it added, the functionality did not get fixed.
I really want to use GPU mode, since it has vastly superior performance for my use-case and also looks better, but this collision issue might be a deal-breaker for me, since it is very important for my program that collision works properly.
I am running Obi Fluids 7.1.1 on Unity 6000.3.19f1
Here is also a video where I showcase this issue:
I have observed the exact same issue, where I also use:
Code:
((ObiMeshShapeTracker)yourCollider.Tracker).UpdateMeshData()But when using GPU mode, the update doesn't seem to properly work or register, while when using the CPU-mode it works flawlessly.
I notice the same when switching colliders on/off, where it is very "flaky" in GPU-mode. I especially observed it with meshcolliders, where it seems to sometimes retain "stale" data, so it looks like its still kinda colliding with the old collider? (very hard to describe what exactly is happening)
So far I have tried a couple of possible workarounds, like deferring the meshdata update by one frame after enabling the collider, but that also didn't fix the issue.
As an explanation of my scene, I only have 1 obiCollider active at a time in my scene and switch between those, through this function:
Code:
private void SetObiColliderEnabled(bool enabled)
{
if(_obiCollider == null) {
_obiCollider = GetComponentInChildren<Obi.ObiCollider>();
}
_obiCollider.enabled = enabled;
if(enabled)
((Obi.ObiMeshShapeTracker)_obiCollider.Tracker).UpdateMeshData();
}where I disable the currently active collider first and then enable the new collider. I added the UpdateMeshData function later due to this forum post, but even with it added, the functionality did not get fixed.
I really want to use GPU mode, since it has vastly superior performance for my use-case and also looks better, but this collision issue might be a deal-breaker for me, since it is very important for my program that collision works properly.
I am running Obi Fluids 7.1.1 on Unity 6000.3.19f1
Here is also a video where I showcase this issue:
