Show / Hide Table of Contents

Class Camera

The camera object attached to a player

Inheritance
Object
Camera
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Server.Rendering
Assembly: SlipeServer.dll
Syntax
public class Camera

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
Type Description
Int32
| Improve this Doc View Source

Target

Get and set the target of this camera

Declaration
public PhysicalElement Target { get; set; }
Property Value
Type Description
PhysicalElement

Methods

| Improve this Doc View Source

Fade(CameraFade)

Fade to black \m/

Declaration
public bool Fade(CameraFade fade)
Parameters
Type Name Description
CameraFade fade
Returns
Type Description
Boolean
| 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
Type Name Description
CameraFade fade
Color color
Int32 time
Returns
Type Description
Boolean
| Improve this Doc View Source

GetCameraMatrix()

Retrieves the 4x4matrix of this camera

Declaration
public Matrix4x4 GetCameraMatrix()
Returns
Type Description
Matrix4x4
| 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
Type Description
Tuple<Vector3, Vector3, Single, Single>
| 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
Type Name Description
Matrix4x4 matrix
Single roll
Single fov
Returns
Type Description
Boolean
| 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
Type Name Description
Vector3 position
Vector3 lookAt
Single roll
Single fov
Returns
Type Description
Boolean
  • Improve this Doc
  • View Source
Back to top Generated by DocFX