mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 14:02:26 +02:00
36 lines
644 B
C++
36 lines
644 B
C++
//
|
|
// hand.h
|
|
// interface
|
|
//
|
|
// Created by Philip Rosedale on 10/13/12.
|
|
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#ifndef interface_hand_h
|
|
#define interface_hand_h
|
|
|
|
#include "glm/glm.hpp"
|
|
#include <iostream>
|
|
#include "util.h"
|
|
#include "field.h"
|
|
#include "world.h"
|
|
#include <GLUT/glut.h>
|
|
|
|
const float RADIUS_RANGE = 10.0;
|
|
|
|
class Hand {
|
|
public:
|
|
Hand(void);
|
|
void simulate (float deltaTime);
|
|
void render ();
|
|
void reset ();
|
|
void setNoise (float mag) { noise = mag; };
|
|
void addVel (glm::vec3 add) { velocity += add; };
|
|
private:
|
|
glm::vec3 position, velocity;
|
|
float noise;
|
|
|
|
};
|
|
|
|
|
|
#endif
|