Panda3D
 All Classes Functions Variables Enumerations
bulletGenericConstraint.I
1 // Filename: bulletGenericConstraint.I
2 // Created by: enn0x (02Mar10)
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: BulletGenericConstraint::Destructor
17 // Access: Published
18 // Description:
19 ////////////////////////////////////////////////////////////////////
20 INLINE BulletGenericConstraint::
21 ~BulletGenericConstraint() {
22 
23  delete _constraint;
24 }
25 
26 ////////////////////////////////////////////////////////////////////
27 // Function: BulletGenericConstraint::get_frame_a
28 // Access: Published
29 // Description:
30 ////////////////////////////////////////////////////////////////////
31 INLINE CPT(TransformState) BulletGenericConstraint::
32 get_frame_a() const {
33 
34  return btTrans_to_TransformState(_constraint->getFrameOffsetA());
35 }
36 
37 ////////////////////////////////////////////////////////////////////
38 // Function: BulletGenericConstraint::get_frame_b
39 // Access: Published
40 // Description:
41 ////////////////////////////////////////////////////////////////////
42 INLINE CPT(TransformState) BulletGenericConstraint::
43 get_frame_b() const {
44 
45  return btTrans_to_TransformState(_constraint->getFrameOffsetB());
46 }
47