Panda3D
bulletSliderConstraint.I
1 // Filename: bulletSliderConstraint.I
2 // Created by: enn0x (01Mar10)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 ////////////////////////////////////////////////////////////////////
16 // Function: BulletSliderConstraint::Destructor
17 // Access: Published
18 // Description:
19 ////////////////////////////////////////////////////////////////////
20 INLINE BulletSliderConstraint::
21 ~BulletSliderConstraint() {
22 
23  delete _constraint;
24 }
25 
26 ////////////////////////////////////////////////////////////////////
27 // Function: BulletSliderConstraint::get_frame_a
28 // Access: Published
29 // Description:
30 ////////////////////////////////////////////////////////////////////
31 INLINE CPT(TransformState) BulletSliderConstraint::
32 get_frame_a() const {
33 
34  return btTrans_to_TransformState(_constraint->getFrameOffsetA());
35 }
36 
37 ////////////////////////////////////////////////////////////////////
38 // Function: BulletSliderConstraint::get_frame_b
39 // Access: Published
40 // Description:
41 ////////////////////////////////////////////////////////////////////
42 INLINE CPT(TransformState) BulletSliderConstraint::
43 get_frame_b() const {
44 
45  return btTrans_to_TransformState(_constraint->getFrameOffsetB());
46 }
47