Panda3D
odeContact.I
1 // Filename: odeContact.I
2 // Created by: joswilso (27Dec06)
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 INLINE OdeSurfaceParameters OdeContact::
16 get_surface() const {
17  return OdeSurfaceParameters(_contact.surface);
18 }
19 
20 INLINE OdeContactGeom OdeContact::
21 get_geom() {
22  return OdeContactGeom(_contact.geom);
23 }
24 
25 INLINE LVecBase3f OdeContact::
26 get_fdir1() const {
27  return LVecBase3f(_contact.fdir1[0],
28  _contact.fdir1[1],
29  _contact.fdir1[2]);
30 }
31 
32 
33 INLINE void OdeContact::
34 set_surface(const OdeSurfaceParameters &surface_parameters) {
35  _contact.surface = *(surface_parameters.get_surface_parameters_ptr());
36 }
37 
38 INLINE void OdeContact::
39 set_geom(const OdeContactGeom &contact_geom) {
40  _contact.geom = *(contact_geom.get_contact_geom_ptr());
41 }
42 
43 INLINE void OdeContact::
44 set_fdir1(const LVecBase3f &fdir1) {
45  _contact.fdir1[0] = fdir1[0];
46  _contact.fdir1[1] = fdir1[1];
47  _contact.fdir1[2] = fdir1[2];
48 }
49 
50 
This is the base class for all three-component vectors and points.
Definition: lvecBase3.h:105