We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
public void processTouch(float x, float y) { Object3DData objectToSelect = CollisionDetection.getBoxIntersection(getObjects(), parent.getgLView().getModelRenderer(), x, y); if (objectToSelect != null) { if (getSelectedObject() == objectToSelect) { Log.i("SceneLoader", "Unselected object " + objectToSelect.getId()); setSelectedObject(null); } else { Log.i("SceneLoader", "Selected object " + objectToSelect.getId()); setSelectedObject(objectToSelect); } float[] point = CollisionDetection.getTriangleIntersection2(getObjects(), parent.getgLView().getModelRenderer(), x, y); if (point != null) { addObject(Object3DBuilder.buildPoint(point).setColor(new float[]{1.0f,0f,0f,1f})); } } }
why the objectToSelect is always null?
The text was updated successfully, but these errors were encountered:
It shouldn't. objetToSelect is null only when touch (x,y) doesn't intersect any object.
What android / device are you using?
Sorry, something went wrong.
Hey. Do you still have the issue?
@andresoviedo I have the same issue
No branches or pull requests
why the objectToSelect is always null?
The text was updated successfully, but these errors were encountered: