• 2024-07-14【Unity】自制PolygonCollider2D
    防止和UnityEngine的PolygonCollider2D重名,所有类包裹在了我自己定义的名称空间JimDevPack中,名称空间的声明部分在文章代码中略去了。定义PolygonCollider2D和基类基类publicclassCollider2D:MonoBehaviour{}PolygonCollider2DpublicclassPolygonCollider2D:Coll
  • 2024-05-29Unity 多边形三角化
    GitHub找到一个用耳切法进行多边形三角化的库,简单测试了一下,感觉还行,推荐给大家项目地址:https://github.com/SebLague/Ear-Clipping-Triangulation测试代码:usingSebastian.Geometry;usingSystem.Collections;usingSystem.Collections.Generic;usingUnityEngine;publi