00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
#ifndef OPENCAL_ROPE_H
00012
#define OPENCAL_ROPE_H
00013
00014
00015
#include <OpenCAL/global.h>
00016
#include <OpenCAL/MassSpringSystem.h>
00017
00018
00019
namespace OpenCAL
00020 {
00021
00022
namespace Utils {
class Vector3; }
00023
using Utils::Vector3;
00024
00025
00029 class OPENCAL_API Rope:
public MassSpringSystem
00030 {
00031
protected:
00032
00033
00034
public:
00035
00036 Rope(
System *parent,
const Vector3 &from,
const Vector3 &to);
00037
virtual ~Rope();
00038
00039
00041
00042
00043
00044
00045
virtual void render();
00046
00047
00048
00049
00050
00051
00052
protected:
00053
00054
void constructRope(
const Vector3 &from,
const Vector3 &to);
00055 };
00056 }
00057
00058
#endif // OPENCAL_ROPE_H