Panda3D
physxPulleyJointDesc.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file physxPulleyJointDesc.h
10  * @author enn0x
11  * @date 2009-09-28
12  */
13 
14 #ifndef PHYSXPULLEYJOINTDESC_H
15 #define PHYSXPULLEYJOINTDESC_H
16 
17 #include "pandabase.h"
18 
19 #include "physxJointDesc.h"
20 #include "physx_includes.h"
21 
22 class PhysxMotorDesc;
23 
24 /**
25  * Descriptor class for distance joint. See PhysxPulleyJoint.
26  */
27 class EXPCL_PANDAPHYSX PhysxPulleyJointDesc : public PhysxJointDesc {
28 
29 PUBLISHED:
30  INLINE PhysxPulleyJointDesc();
31  INLINE ~PhysxPulleyJointDesc();
32 
33  INLINE void set_to_default();
34  INLINE bool is_valid() const;
35 
36  void set_distance(float distance);
37  void set_stiffness(float stiffness);
38  void set_ratio(float ration);
39  void set_pulley(unsigned int idx, const LPoint3f pos);
40  void set_motor(const PhysxMotorDesc &motor);
41  void set_flag(PhysxPulleyJointFlag flag, bool value);
42 
43  float get_distance() const;
44  float get_stiffness() const;
45  float get_ratio() const;
46  bool get_flag(PhysxPulleyJointFlag flag) const;
47  LPoint3f get_pulley(unsigned int idx) const;
48  PhysxMotorDesc get_motor() const;
49 
50 public:
51  NxJointDesc *ptr() const { return (NxJointDesc *)&_desc; };
52  NxPulleyJointDesc _desc;
53 };
54 
55 #include "physxPulleyJointDesc.I"
56 
57 #endif // PHYSXPULLEYJOINTDESC_H
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
physxPulleyJointDesc.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PhysxMotorDesc
Describes a joint motor.
Definition: physxMotorDesc.h:26
PhysxJointDesc
Abstract base class for joint descriptors.
Definition: physxJointDesc.h:28
physxJointDesc.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PhysxPulleyJointDesc
Descriptor class for distance joint.
Definition: physxPulleyJointDesc.h:27
physx_includes.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.