bonsairobo / smooth-bevy-cameras

Bevy camera controllers with buttery, exponential smoothing.
MIT License
286 stars 55 forks source link

Match UE4 viewport controls for unreal module #10

Closed dtaralla closed 2 years ago

dtaralla commented 2 years ago

Hello, and first of all: thank you for this plugin, awesome work and very useful/readable.

I'm using Unreal Editor 4.27 in my day-to-day job, and your mapping for the "Unreal" camera were not exactly mimicking UE4 perspective viewport controls.

I've modified your unreal module to follow them more closely. I've also tuned the default values of the UnrealCameraController to have better default speeds compared to the Bevy unit. They feel better when navigating in a scene with meshes of diameter 1 but we might want to put them back up if that's not the ordinary case. They just felt better for the simple_unreal.rs example!

Please don't hesitate to comment/review my code :)

bonsairobo commented 2 years ago

Looks good, thank you!