12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- #ifndef PIN_JOINT_BULLET_H
- #define PIN_JOINT_BULLET_H
- #include "joint_bullet.h"
- class RigidBodyBullet;
- class PinJointBullet : public JointBullet {
- class btPoint2PointConstraint *p2pConstraint;
- public:
- PinJointBullet(RigidBodyBullet *p_body_a, const Vector3 &p_pos_a, RigidBodyBullet *p_body_b, const Vector3 &p_pos_b);
- ~PinJointBullet();
- virtual PhysicsServer::JointType get_type() const { return PhysicsServer::JOINT_PIN; }
- void set_param(PhysicsServer::PinJointParam p_param, real_t p_value);
- real_t get_param(PhysicsServer::PinJointParam p_param) const;
- void setPivotInA(const Vector3 &p_pos);
- void setPivotInB(const Vector3 &p_pos);
- Vector3 getPivotInA();
- Vector3 getPivotInB();
- };
- #endif
|