Added follow cam
Added "Controlled" mesh classes Added Global Lighting Class Added Gamepad controls Split terrain nodes into Height and Perlin classes Fixed Splitmesh node stuff
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
#pragma once
|
||||
#include "core.h"
|
||||
#include "DirectXCore.h"
|
||||
#include "SharedMethods.h"
|
||||
#include "ObjectNode.h"
|
||||
|
||||
class Camera
|
||||
{
|
||||
@ -11,7 +13,8 @@ public:
|
||||
void Update();
|
||||
XMMATRIX GetViewMatrix();
|
||||
XMVECTOR GetCameraPosition();
|
||||
XMFLOAT4 GetRawCameraPosition();
|
||||
void SetCameraPosition(XMVECTOR vectorIn);
|
||||
void SetCameraPosition(XMFLOAT4 floatIn);
|
||||
void SetCameraPosition(float x, float y, float z);
|
||||
void SetPitch(float pitch);
|
||||
void SetTotalPitch(float pitch);
|
||||
@ -24,6 +27,7 @@ public:
|
||||
float GetRoll() const;
|
||||
void SetLeftRight(float leftRight);
|
||||
void SetForwardBack(float forwardBack);
|
||||
void SetFollowNode(shared_ptr<ObjectNode> nodeFollowed, XMFLOAT3 followOffset, bool positionOnly);
|
||||
|
||||
private:
|
||||
XMFLOAT4 _cameraPosition;
|
||||
@ -37,5 +41,8 @@ private:
|
||||
float _cameraPitch;
|
||||
float _cameraRoll;
|
||||
|
||||
shared_ptr<ObjectNode> _nodeFollowed;
|
||||
XMFLOAT3 _followOffset;
|
||||
bool _followPositionOnly;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user