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:
iDunnoDev
2022-05-09 17:50:22 +01:00
committed by iDunnoDev
parent bc906064e5
commit f6bba67897
58 changed files with 1743 additions and 351 deletions

40
Graphics2/ObjectNode.h Normal file
View File

@ -0,0 +1,40 @@
#pragma once
#include "DirectXCore.h"
class ObjectNode
{
public:
ObjectNode();
void Update(XMFLOAT4X4& currentWorldTransform);
XMVECTOR GetNodePosition();
void SetNodePosition(XMVECTOR vectorIn);
void SetNodePosition(XMFLOAT4 floatIn);
void SetNodePosition(float x, float y, float z);
void SetPitch(float pitch);
void SetTotalPitch(float pitch);
float GetPitch() const;
void SetYaw(float yaw);
void SetTotalYaw(float yaw);
float GetYaw() const;
void SetRoll(float roll);
void SetTotalRoll(float roll);
float GetRoll() const;
void SetLeftRight(float leftRight);
void SetForwardBack(float forwardBack);
void SetStartOrientation(FXMMATRIX originalOrientation);
protected:
XMFLOAT4 _nodeRootPosition;
float _moveLeftRight;
float _moveForwardBack;
float _nodeYaw;
float _nodePitch;
float _nodeRoll;
XMFLOAT4X4 _originalOrientation;
};