Skip to content
Discussion options

You must be logged in to vote

@spiritbro1 Does it work if you add singleActionButton: true to your tags and change this.el.addEventListener("interact", this.onClick) to this.el.object3D.addEventListener("interact", this.onClick) ?

You should be able to add console logging to the CursorTargettingSystem, interaction system and SingleActionButtonSystem to trace through whether your object is available for raycasting, whether it's being hit by the raycaster, whether it's hovered and finally whether the interact event will fire on its object3D.

Unmark this response as the answer if you are still running into problems you need help with.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@spiritbroski
Comment options

Answer selected by johnshaughnessy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants