Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to handle terrain holes?
#8
(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
Reply


Messages In This Thread
How to handle terrain holes? - by btduser - 04-09-2024, 04:55 PM
RE: How to handle terrain holes? - by josemendez - 04-09-2024, 07:38 PM
RE: How to handle terrain holes? - by btduser - 04-09-2024, 08:34 PM
RE: How to handle terrain holes? - by josemendez - 04-09-2024, 10:35 PM
RE: How to handle terrain holes? - by btduser - 04-09-2024, 11:04 PM
RE: How to handle terrain holes? - by josemendez - 05-09-2024, 07:53 AM
RE: How to handle terrain holes? - by btduser - 05-09-2024, 02:28 PM
RE: How to handle terrain holes? - by josemendez - 06-09-2024, 07:56 AM