Struct kiss3d::camera::FirstPerson [] [src]

pub struct FirstPerson { /* fields omitted */ }

First-person camera mode.

Methods

impl FirstPerson
[src]

Creates a first person camera with default sensitivity values.

Creates a new first person camera with default sensitivity values.

Sets the translational increment per arrow press.

The default value is 0.5.

Sets the pitch increment per mouse movement.

The default value is 0.005.

Sets the yaw increment per mouse movement.

The default value is 0.005.

Gets the translational increment per arrow press.

Gets the pitch increment per mouse movement.

Gets the yaw increment per mouse movement.

Changes the orientation and position of the camera to look at the specified point.

The point the camera is looking at.

The button used to rotate the FirstPerson camera.

Set the button used to rotate the FirstPerson camera. Use None to disable rotation.

The button used to drag the FirstPerson camera.

Set the button used to drag the FirstPerson camera. Use None to disable dragging.

The movement button for up.

The movement button for down.

The movement button for left.

The movement button for right.

Set the movement button for up. Use None to disable movement in this direction.

Set the movement button for down. Use None to disable movement in this direction.

Set the movement button for left. Use None to disable movement in this direction.

Set the movement button for right. Use None to disable movement in this direction.

Disable the movement buttons for up, down, left and right.

The direction this camera is looking at.

The direction this camera is being moved by the keyboard keys for a given set of key states.

Translates in-place this camera by t.

Translates this camera by t.

Trait Implementations

impl Debug for FirstPerson
[src]

Formats the value using the given formatter.

impl Clone for FirstPerson
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Camera for FirstPerson
[src]

The clipping planes, aka. (znear, zfar).

The camera view transformation (i-e transformation without projection).

Handle a mouse event.

The camera position.

The transformation applied by the camera to transform a point in world coordinates to a point in device coordinates. Read more

The transformation applied by the camera to transform point in device coordinates to a point in world coordinate. Read more

Update the camera. This is called once at the beginning of the render loop.

Upload the camera transformation to the gpu. This can be called multiple times on the render loop. Read more

The number of passes required by this camera.

Indicates that a pass will begin.

Indicates that the scene has been rendered and the post-processing is being run.

Converts a 3d point to 2d screen coordinates, assuming the screen has the size size.

Converts a point in 2d screen coordinates to a ray (a 3d position and a direction). Read more