Archived
Added camera class
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
public class Worldbuilder.Camera : Object {
|
||||||
|
/**
|
||||||
|
* The position of the camera
|
||||||
|
*/
|
||||||
|
public Vector3 position { get; set; }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The direction the camera is facing.
|
||||||
|
*/
|
||||||
|
public Vector3 direction { get; set; }
|
||||||
|
|
||||||
|
public Camera (Vector3 position = Vector3 (), Vector3 direction = Vector3 (0, 0, -1)) {
|
||||||
|
this.position = position;
|
||||||
|
this.direction = direction;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -7,6 +7,7 @@ worldbuilder_sources = [
|
|||||||
'core/vector3.vala',
|
'core/vector3.vala',
|
||||||
'core/matrix4x4.vala',
|
'core/matrix4x4.vala',
|
||||||
'core/vector2.vala',
|
'core/vector2.vala',
|
||||||
|
'core/camera.vala'
|
||||||
]
|
]
|
||||||
|
|
||||||
worldbuilder_deps = [
|
worldbuilder_deps = [
|
||||||
|
|||||||
Reference in New Issue
Block a user