06-09-2024, 07:56 AM
(This post was last modified: 06-09-2024, 07:58 AM by josemendez.)
(05-09-2024, 02:28 PM)btduser Wrote: Got it, thanks for the explanation. So considering that the issue is really only when the height is exactly zero, would it be reasonable to do the following?
Code:if (!isHole){
value = height;
}
else{
value = (height == 0) ? -1e-7f : -height);
}
Hi,
That should be fine, I've tested it and seems to work fine. Only issue is a very small slope in the terrain surrounding the hole which causes particles to slowly roll away from the hole when using a completely frictionless material and no sleep threshold, but that's rather unusual. For most practical purposes the terrain remains flat.
Will consider adding this modification to the asset. Thanks!
kind regards