Class Camera
The camera object attached to a player
Assembly: SlipeServer.dll
Syntax
Constructors
|
Improve this Doc
View Source
Camera(Player)
Creates a new camera instance from a player
Declaration
public Camera(Player player)
Parameters
Type |
Name |
Description |
Player |
player |
|
Properties
|
Improve this Doc
View Source
Interior
Get and set the interior of this camera
Declaration
public int Interior { get; set; }
Property Value
|
Improve this Doc
View Source
Target
Get and set the target of this camera
Declaration
public PhysicalElement Target { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Fade(CameraFade)
Declaration
public bool Fade(CameraFade fade)
Parameters
Returns
|
Improve this Doc
View Source
Fade(CameraFade, Color, Int32)
Fade the camera to a specific color in a certain time
Declaration
public bool Fade(CameraFade fade, Color color, int time = 1000)
Parameters
Returns
|
Improve this Doc
View Source
GetCameraMatrix()
Retrieves the 4x4matrix of this camera
Declaration
public Matrix4x4 GetCameraMatrix()
Returns
|
Improve this Doc
View Source
GetFullCameraMatrix()
Retrieve the position, lookat, roll and field of view of a camera
Declaration
public Tuple<Vector3, Vector3, float, float> GetFullCameraMatrix()
Returns
|
Improve this Doc
View Source
SetMatrix(Matrix4x4, Single, Single)
Sets the matrix of this camera using a 4x4 matrix, roll and field of view
Declaration
public bool SetMatrix(Matrix4x4 matrix, float roll = 0F, float fov = 70F)
Parameters
Returns
|
Improve this Doc
View Source
SetMatrix(Vector3, Vector3, Single, Single)
Sets the matrix of this camera using two vectors, roll and field of view
Declaration
public bool SetMatrix(Vector3 position, Vector3 lookAt, float roll = 0F, float fov = 70F)
Parameters
Returns