Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
2D Triangle collider?
#4
Hi,

Edge data isn't automatically updated every frame, since it is a costly operation: a BVH-like structure must be generated to allow for fast collision queries against the edges. To update the internal edge data, you must call UpdateEdgeData():
Code:
((ObiEdgeShapeTracker2D)obiCollider.tracker).UpdateEdgeData();

let me know if I can be of further help.
Reply


Messages In This Thread
2D Triangle collider? - by bobby - 17-07-2022, 02:55 AM
RE: 2D Triangle collider? - by josemendez - 18-07-2022, 08:22 AM
RE: 2D Triangle collider? - by bobby - 18-07-2022, 11:52 AM
RE: 2D Triangle collider? - by josemendez - 18-07-2022, 12:02 PM
RE: 2D Triangle collider? - by bobby - 18-07-2022, 07:30 PM
RE: 2D Triangle collider? - by josemendez - 19-07-2022, 06:55 AM