aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ode-0.9/contrib/DotNetManaged/JointHinge2.h
blob: e883ea820c9bfe771546f8aa9f505dd1c554feb7 (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
43
44
45
46
47
48
#pragma once

#include "Joint.h"
#include "CommonMgd.h"

namespace ODEManaged
{
	__gc public class JointHinge2 : public Joint
	{
		public:


		//Constructors

			JointHinge2				(void);
			JointHinge2				(World &world);
			JointHinge2				(World &world, JointGroup &jointGroup);
			
		//Destructors

			virtual ~JointHinge2	(void);
			

		//Methods

			//Overloaded Hinge.Create
			void	Create			(World &world, JointGroup &jointGroup);
			void	Create			(World &world);
			
			void	SetAnchor		(double x, double y, double z);
			Vector3 GetAnchor		(void);

			void	SetAxis1		(double x, double y, double z);
			Vector3 GetAxis1		(void);

			void	SetAxis2		(double x, double y, double z);
			Vector3 GetAxis2		(void);

			double	GetAngle1		(void);
			double	GetAngle1Rate	(void);

			//double GetAngle2 (void);
			double	GetAngle2Rate	(void);

			void	Attach			(Body &body1, Body &body2);	
			void	Attach(			Body &body1);
	};
}