summaryrefslogtreecommitdiff
path: root/Runtime/mecanim/animation/damp.h
blob: 319f6e62d80cb27ab08fd5ded40c2e333acb4a18 (plain)
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
32
33
34
35
36
37
38
39
40
41
42
#pragma once

#include "Runtime/mecanim/defs.h"
#include "Runtime/mecanim/memory.h"
#include "Runtime/mecanim/types.h"
#include "Runtime/Math/Simd/float4.h"

namespace mecanim
{

namespace dynamics
{
	class ScalDamp
	{		
		public:

		float m_DampTime;
		float m_Value;

		ScalDamp() { Reset(); }

		void Reset() { m_DampTime = 0; m_Value = 0; }
		void Evaluate(float value, float deltaTime);
	};


	class VectorDamp
	{
	public:

		float			m_DampTime;
		math::float4	m_Value;

		VectorDamp() { Reset(); }

		void Reset() { m_DampTime = 0; m_Value = math::float4::zero(); }
		void Evaluate(math::float4 const& value, float deltaTime);
	};

} // namespace dynamics

}