Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Gimbal prototype #109

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

Gimbal prototype #109

wants to merge 12 commits into from

Conversation

Licini
Copy link
Collaborator

@Licini Licini commented Jan 14, 2022

image

A working gimbal implementation. Can still be a bit a buggy, but let me know what you think.
Also added event listening mechanism in the base Object for this.

# add listener
obj.add_event_listener("mousedown", some_function)

# when calling it
event_info = {'x': mouse_x, 'y': mouse_y}
obj.dispatch_event("mousedown", event_info )

@Licini
Copy link
Collaborator Author

Licini commented Jan 14, 2022

Added rotate option too, press "e" for rotate and "w" for translate
image

@tomvanmele
Copy link
Member

cool. will give it a try as soon as i am done with a ll of the UI stuff...

@Licini
Copy link
Collaborator Author

Licini commented Jan 19, 2022

cool. will give it a try as soon as i am done with a ll of the UI stuff...

Just made a bunch of updates, now you can also use q to switch world/local coordinate system and r for scale. It's also fairly much less buggy now

@ZacZhangzhuo
Copy link
Collaborator

That looks cool! Even I am not clear if the transformation will affect any code/file or just a visual thing. But anyway we are not making CAD software, right? Having this function will be helpful for sure!

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

Successfully merging this pull request may close these issues.

3 participants