Convienent class that sets up First Person Shooter (FPS) input controls where
WSAD keys move the camera forward/backword/left/right and the mouse looks around.
| C# |
public class FirstPersonControl
| All Members | Constructors | Methods | Properties | ||
|
|
|
|
|||
| Icon | Member | Description |
|---|---|---|
|
|
FirstPersonControl(Camera, InputLayer) |
Initializes a new instance of the FirstPersonControl class.
|
|
|
Camera |
Gets or sets the camera the FPS controls will use.
|
|
|
Equals(Object) |
(Inherited from Object.) |
|
|
Finalize()()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
|
|
GetHashCode()()()() |
Serves as a hash function for a particular type. (Inherited from Object.) |
|
|
GetType()()()() |
Gets the Type of the current instance. (Inherited from Object.) |
|
|
MemberwiseClone()()()() |
Creates a shallow copy of the current Object. (Inherited from Object.) |
|
|
MoveSpeed |
Gets or sets the movement speed of the camera. Default is 150.
|
|
|
RotateSpeed |
Gets or sets the camera rotation speed. Default is .1f.
|
|
|
ToString()()()() |
(Inherited from Object.) |
| Object | |
|
|
FirstPersonControl |
Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)