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
i want get the actor that mouse clicked. but picker allways get an actor list and i cant get the right one
` this.splitonLeftButtonPress = interactor.onLeftButtonPress( (callData) => { const pos = callData.position;
picker.pick([pos.x, pos.y, 0], this.renderer); const pickedActors = picker.getActors(); console.log(pickedActors, "xxxx"); if (pickedActors.length > 0) { pickedActor = pickedActors[0]; console.log(pickedActor.get("name"), "---------------"); lastPosition = pos; console.log("actorPosition:", pickedActor.getPosition()); console.log("pickPosition:", picker.getPickPosition()); } } )`
cant get the one that i clicked
The text was updated successfully, but these errors were encountered:
No branches or pull requests
High-level description
i want get the actor that mouse clicked. but picker allways get an actor list and i cant get the right one
Steps to reproduce
` this.splitonLeftButtonPress = interactor.onLeftButtonPress(
(callData) => {
const pos = callData.position;
Detailed Current Behavior
cant get the one that i clicked
Environment
The text was updated successfully, but these errors were encountered: