VRage.Game.ModAPI.Interfaces
IMyCameraController
Assembly: VRage.Game.dll
public interface IMyCameraController
Interface to control game camera (not block) (mods interface)
Properties
| Member | Description |
|---|---|
| AllowCubeBuilding | Gets if player block building enabled |
| EnableFirstPersonView | Gets or set if player can use first person view |
| Entity | Gets Entity to which it is attached |
| ForceFirstPersonCamera | Gets or sets if player can use only first person view |
| IsInFirstPersonView | Gets or sets if the current camera view is first person. |
Methods
| Member | Description |
|---|---|
| ControlCamera(MyCamera) | Change camera properties now. Communication: from controller to camera. |
| GetOverridingFocusMatrix() | Transformation that should be used for target selection while focusing |
| HandlePickUp() | Does nothing. |
| HandleUse() | Used to send "use" commands to camera controller |
| OnAssumeControl(IMyCameraController) | Called when it is setted as new main camera controller |
| OnReleaseControl(IMyCameraController) | Called when new camera controller setted, and this was main camera controller |
| Rotate(Vector2, float) | Rotate camera controller. |
| RotateStopped() | Rotation of camera controller stopped. |
Inheritors: