The-DevBlog / bevy_third_person_camera

A third person camera crate written for Bevy.
Apache License 2.0
75 stars 17 forks source link

Enable Orbit rotation only by using specific mouse button #9

Closed SGoerzen closed 1 year ago

SGoerzen commented 1 year ago

I needed the use case that orbit rotation is only done only when pressing right mouse button. I wanted to share my changes.

I've added a flag to enable this behaviour and provided the option to change the button (default right mouse button) if needed.

Per default, it is deactivated. Thus, this merge shall not break anything.

The-DevBlog commented 1 year ago

@SGoerzen Thanks for the contribution! This is a good idea. I'll be looking at this sometime this week, but please hold on because I'm really busy this week.

SGoerzen commented 1 year ago

Thank you for reply! No stress. While it is not merged we are using my fork :)

Of course, if you need some adjustments which goes more in direction of your crate design - please tell me. (Also details like naming of paramters etc.)

SGoerzen commented 1 year ago

Can you also add these settings to the README.md? Specifically under the Custom Settings & Default Controls sections.

done

The-DevBlog commented 1 year ago

@SGoerzen Thanks a ton! Im going to add gamepad support for this and then I will publish a new release

The-DevBlog commented 1 year ago

@SGoerzen New version published! https://crates.io/crates/bevy_third_person_camera

Thanks a lot for your contribution!