Show / Hide Table of Contents

Class Camera

Represents the player's camera view.

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: SlipeServer.Server.Concepts
Assembly: SlipeServer.Server.dll
Syntax
public class Camera

Constructors

| Edit this page View Source

Camera(Player)

Declaration
public Camera(Player player)
Parameters
Type Name Description
Player player

Properties

| Edit this page View Source

Interior

The interior the camera is rendering content of

Declaration
public byte Interior { get; set; }
Property Value
Type Description
byte
| Edit this page View Source

LookAt

The position the camera is looking at, use SetMatrix if you want to modify this for the client

Declaration
public Vector3? LookAt { get; set; }
Property Value
Type Description
Vector3?
| Edit this page View Source

Position

The camera's position, use SetMatrix if you want to modify this for the client

Declaration
public Vector3? Position { get; set; }
Property Value
Type Description
Vector3?
| Edit this page View Source

Target

The camera target, when set the camera follows this element. This only supports vehicles and players

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

Methods

| Edit this page View Source

Fade(CameraFade, float, Color?)

Fades the camera in or out

Declaration
public void Fade(CameraFade fade, float fadeTime = 1, Color? color = null)
Parameters
Type Name Description
CameraFade fade

Determines whether to fade in or out

float fadeTime

Time the fade should take in seconds

Color? color

color to fade (out) to

| Edit this page View Source

SetMatrix(Vector3, Vector3, float, float)

Sets the camera's position, direction, roll and field of view

Declaration
public void SetMatrix(Vector3 position, Vector3 lookAt, float roll = 0, float fov = 70)
Parameters
Type Name Description
Vector3 position

Position of the camera

Vector3 lookAt

Position the camera looks at

float roll

Camera roll, in degrees

float fov

Camera field of view, in degrees

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX