Struct camera_controllers::FirstPersonSettings [] [src]

pub struct FirstPersonSettings<T = f32> {
    pub move_forward_button: Button,
    pub move_backward_button: Button,
    pub strafe_left_button: Button,
    pub strafe_right_button: Button,
    pub fly_up_button: Button,
    pub fly_down_button: Button,
    pub move_faster_button: Button,
    pub speed_horizontal: T,
    pub speed_vertical: T,
}

First person camera settings.

Fields

move_forward_button: Button

Which button to press to move forward.

move_backward_button: Button

Which button to press to move backward.

strafe_left_button: Button

Which button to press to strafe left.

strafe_right_button: Button

Which button to press to strafe right.

fly_up_button: Button

Which button to press to fly up.

fly_down_button: Button

Which button to press to fly down.

move_faster_button: Button

Which button to press to move faster.

speed_horizontal: T

The horizontal movement speed.

This is measured in units per second.

speed_vertical: T

The vertical movement speed.

This is measured in units per second.

Methods

impl<T> FirstPersonSettings<T> where T: Float
[src]

fn keyboard_wasd() -> FirstPersonSettings<T>

Creates new first person camera settings with wasd defaults.

fn keyboard_esdf() -> FirstPersonSettings<T>

Creates a new first person camera settings with esdf defaults.