wiki.sine.space | sinespace

Scripting/SCameraManager

From wiki.sine.space
Revision as of 13:06, 17 January 2017 by Sinewave (Talk | contribs) (Created page with "The SCameraManager class allows you to take and manipulate the users camera. Combine with Scripting/SCamera to create 2D side-scrolling regions! ==Members== {{ScriptFunct...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The SCameraManager class allows you to take and manipulate the users camera. Combine with Scripting/SCamera to create 2D side-scrolling regions!

Members

IsLocked

bool IsLocked { get; }

Returns true if the Camera is locked and can be manipulated by this script.

No example provided yet

ReleaseCamera

void ReleaseCamera ();

Relinquishes control of the Camera back to Space

No example provided yet

LockCamera

void LockCamera (SGameObject owner);

Takes control of the Camera as long as 'owner' exists in the scene, or until ReleaseCamera() has been called. Using the Host runtime as the owner is often a good practice.

No example provided yet

SetCameraPositionOrientation

void SetCameraPositionOrientation (SVector position, SQuaternion orientation);

Forces the camera to be at position facing orientation for the frame. Needs to be called every frame.

No example provided yet