-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSheet.h
More file actions
32 lines (29 loc) · 682 Bytes
/
Sheet.h
File metadata and controls
32 lines (29 loc) · 682 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#pragma once
#include "DrawableBase.h"
class Sheet : public DrawableBase<Sheet>
{
public:
Sheet(Graphics& gfx, std::mt19937& rng,
std::uniform_real_distribution<float>& adist,
std::uniform_real_distribution<float>& ddist,
std::uniform_real_distribution<float>& odist,
std::uniform_real_distribution<float>& rdist);
void Update(float dt) noexcept override;
DirectX::XMMATRIX GetTransformXM() const noexcept override;
private:
// Transform Related
float r;
float roll = 0.0f;
float pitch = 0.0f;
float yaw = 0.0f;
float theta;
float phi;
float chi;
// Rate of Change Related
float droll;
float dpitch;
float dyaw;
float dtheta;
float dphi;
float dchi;
};