Open JeromeCHA opened 3 weeks ago
This is not a solution, but an idea why it happens. My guess is that the SphereNode is using a bounding box for the collision test.
A quick rundown revealed, that a box must be used:
In the collision package there is a class called Sphere.java. Probably a remnant of SceneForm, but you can give it a try.
@RGregat Ohh I see, thank you for the explanation. I hope it can be fixed 🤔 For a SphereNode, I guess you can check if the tap is outside the sphere area, but for some models (using ModelNode for example) it will be tough to avoid that behavior
Shape | Result |
---|---|
Currently, with the version
2.2.0
, I am facing the issue where hitTest result is returned even if we tapped outside the node.The behavior can be reproduced with the following simple code.
or with the gesture listener
Here is the result
Is there something I am doing wrong? or anything I can do to avoid this?
Edit : Still occurs in
2.2.1