Skip to content
New issue

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

Add hovering over scene objects with ctHoverEvent and ctHoverCamera. #24

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tril0byte
Copy link

ctHoverEvent: contains a (Maybe EntityId) of the current hover item.
Requires a ctHoverCamera property set to the EntityId of the camera to use.
Supports registering for callbacks for get updated on hover changes.

ctHoverEvent: contains a (Maybe EntityId) of the current hover item.
Requires a ctHoverCamera property set to the EntityId of the camera to use.
Supports registering for callbacks for get updated on hover changes.
@tril0byte
Copy link
Author

This version reports only the hover Entity ID. I'm not including here, but I've extended the hover event to also include the hovered world position of the entity hovered over. You can see it over in my branch called drag2. It results in a lot more hover events, as it needs to report on every mouse move instead of just when the entity changes, but this has not been an issue so far. https://github.com/tril0byte/HGamer3D/commits/drag2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant