bevy_flycam icon indicating copy to clipboard operation
bevy_flycam copied to clipboard

intentional position and orientation

Open DerKarlos opened this issue 2 years ago • 3 comments

It would be nice, if the initial position and orientation could be set by the user. May be the MovementSettings could become CameraSettings? (And thank you for the crate, it gave me a fast help)

DerKarlos avatar May 18 '22 19:05 DerKarlos

Hello, this is what NoCameraPlayerPlugin is useful for. You can do whatever you want with the camera and attach controls to it. An example of this is in examples/scroll.rs around line 20 and 58-65

https://github.com/sburris0/bevy_flycam/blob/075904bff5d4f1af1499f5217d9284642d27b93a/examples/scroll.rs

I'm glad this crate has been useful to you

sburris0 avatar May 29 '22 18:05 sburris0

While the position can be set, I don't think initial pitch an yaw are derived from initial transform. I'd need a little bit more testing to be sure, but with my current setup I start by looking at an object and the smallest mouse movement rotates camera to where I can no longer see it. (but after that it works just fine)

MiniaczQ avatar Jun 08 '22 15:06 MiniaczQ

@MiniaczQ I had that same issue. See PR #21 for a fix.

Neopallium avatar Aug 21 '22 15:08 Neopallium