taskman
taskman

Reputation: 53

Javafx TriangleMesh collision detection

I would like to know if there is an easy way to detect when one TriangleMesh collides with another one or maybe a TriangleMesh collides with a Point3D

I tested using a Point3D. I placed it at 0, 0 and gave it a width and height of 1. The tested TriangleMesh is an object that doesn't have anything at 0, 0, but the intersect method still returned true. I am guessing it detects collision on the bounding box and not the surface of the Mesh

Upvotes: 0

Views: 320

Answers (1)

jdub1581
jdub1581

Reputation: 669

I am pretty sure you want to be looking at the PickResult class.. I haven't gotten that far myself yet, but I am pretty sure it is what you're looking for.. good luck! post results!

Upvotes: 0

Related Questions