Panda3D
odeContact.I
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file odeContact.I
10  * @author joswilso
11  * @date 2006-12-27
12  */
13 
14 INLINE OdeSurfaceParameters OdeContact::
15 get_surface() const {
16  return OdeSurfaceParameters(_contact.surface);
17 }
18 
19 INLINE OdeContactGeom OdeContact::
20 get_geom() {
21  return OdeContactGeom(_contact.geom);
22 }
23 
24 INLINE LVecBase3f OdeContact::
25 get_fdir1() const {
26  return LVecBase3f(_contact.fdir1[0],
27  _contact.fdir1[1],
28  _contact.fdir1[2]);
29 }
30 
31 
32 INLINE void OdeContact::
33 set_surface(const OdeSurfaceParameters &surface_parameters) {
34  _contact.surface = *(surface_parameters.get_surface_parameters_ptr());
35 }
36 
37 INLINE void OdeContact::
38 set_geom(const OdeContactGeom &contact_geom) {
39  _contact.geom = *(contact_geom.get_contact_geom_ptr());
40 }
41 
42 INLINE void OdeContact::
43 set_fdir1(const LVecBase3f &fdir1) {
44  _contact.fdir1[0] = fdir1[0];
45  _contact.fdir1[1] = fdir1[1];
46  _contact.fdir1[2] = fdir1[2];
47 }