Panda3D
 All Classes Functions Variables Enumerations
physxD6JointDesc.I
1 // Filename: physxD6JointDesc.I
2 // Created by: enn0x (01Oct09)
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 
17 ////////////////////////////////////////////////////////////////////
18 // Function: PhysxD6JointDesc::Constructor
19 // Access: Published
20 // Description:
21 ////////////////////////////////////////////////////////////////////
22 INLINE PhysxD6JointDesc::
23 PhysxD6JointDesc() : PhysxJointDesc() {
24 
26 }
27 
28 ////////////////////////////////////////////////////////////////////
29 // Function: PhysxD6JointDesc::Destructor
30 // Access: Published
31 // Description:
32 ////////////////////////////////////////////////////////////////////
33 INLINE PhysxD6JointDesc::
34 ~PhysxD6JointDesc() {
35 
36 }
37 
38 ////////////////////////////////////////////////////////////////////
39 // Function: PhysxD6JointDesc::set_to_default
40 // Access: Published
41 // Description: (re)sets the structure to the default.
42 ////////////////////////////////////////////////////////////////////
43 INLINE void PhysxD6JointDesc::
45 
46  _desc.setToDefault();
47  set_name("");
48 }
49 
50 ////////////////////////////////////////////////////////////////////
51 // Function: PhysxD6JointDesc::is_valid
52 // Access: Published
53 // Description: Returns true if the descriptor is valid.
54 ////////////////////////////////////////////////////////////////////
55 INLINE bool PhysxD6JointDesc::
56 is_valid() const {
57 
58  return _desc.isValid();
59 }
60 
void set_to_default()
(re)sets the structure to the default.
Abstract base class for joint descriptors.
bool is_valid() const
Returns true if the descriptor is valid.
void set_name(const char *name)
Sets a possible debug name.