Table of Contents

Class Camera

Namespace
Termule.Engine.Components
Assembly
Termule.Engine.dll

Component that renders its surroundings to an ICameraTarget.

public sealed class Camera : Component
Inheritance
Camera
Inherited Members

Properties

Target

Gets or sets the target that this camera should render to.

public ICameraTarget Target { get; set; }

Property Value

ICameraTarget

Methods

GameToTargetPos(Vector)

Converts a position from world-space to target-space relative to this camera.

public Vector GameToTargetPos(Vector pos)

Parameters

pos Vector

The position in world space.

Returns

Vector

The corresponding position in target space.

TargetToGamePos(Vector)

Converts a position from target-space to world-space relative to this camera.

public Vector TargetToGamePos(Vector pos)

Parameters

pos Vector

The position in target space.

Returns

Vector

The corresponding position in world space.

Tick()

Called once per tick.

protected override void Tick()