source: GTP/trunk/App/Demos/Vis/FriendlyCulling/src/MotionPath.cpp @ 2953

Revision 2953, 538 bytes checked in by mattausch, 16 years ago (diff)

started different stuff

Line 
1#include "MotionPath.h"
2
3
4namespace CHCDemoEngine
5{
6
7
8MotionPath::MotionPath(const VertexArray &vertices):
9mVertices(vertices), mCurrentVertexIdx(0)
10{
11}
12
13
14void MotionPath::Move(float velocity)
15{
16}
17
18
19Vector3 MotionPath::GetCurrentPosition() const
20{
21        return mT * mVertices[mCurrentVertexIdx] + (1.0f - mT) * mVertices[(mCurrentVertexIdx + 1) % mVertices.size()];
22}
23
24
25Vector3 MotionPath::GetCurrentDirection() const
26{
27        return Vector3(1, 0, 0);
28}
29
30
31void MotionPath::Reset()
32{
33        mCurrentVertexIdx = 0;
34}
35
36
37}
Note: See TracBrowser for help on using the repository browser.