[physics] Fixture:testPoint does not appear to work on Chainshapes
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
[physics] Fixture:testPoint does not appear to work on Chainshapes
The title pretty much explains it. It would appear that Fixture:testPoint does not work with fixtures with nothing besides a single chainshape in them. I'm sure I could find workarounds (such as using 'triangulate' to break it into triangles and testing those) but I'd like to know if anyone else has come across this problem, and if they have a better solution.
Re: [physics] Fixture:testPoint does not appear to work on Chainshapes
Chain shapes have 0 area so a point could never be "inside". This is because chain shapes are just collections of edges.
I suppose you could test if a point is "near" the edges of the chain.
I suppose you could test if a point is "near" the edges of the chain.
Who is online
Users browsing this forum: Google [Bot] and 94 guests