Panda3D
Loading...
Searching...
No Matches
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
14INLINE OdeSurfaceParameters OdeContact::
15get_surface() const {
16 return OdeSurfaceParameters(_contact.surface);
17}
18
19INLINE OdeContactGeom OdeContact::
20get_geom() {
21 return OdeContactGeom(_contact.geom);
22}
23
24INLINE LVecBase3f OdeContact::
25get_fdir1() const {
26 return LVecBase3f(_contact.fdir1[0],
27 _contact.fdir1[1],
28 _contact.fdir1[2]);
29}
30
31
32INLINE void OdeContact::
33set_surface(const OdeSurfaceParameters &surface_parameters) {
34 _contact.surface = *(surface_parameters.get_surface_parameters_ptr());
35}
36
37INLINE void OdeContact::
38set_geom(const OdeContactGeom &contact_geom) {
39 _contact.geom = *(contact_geom.get_contact_geom_ptr());
40}
41
42INLINE void OdeContact::
43set_fdir1(const LVecBase3f &fdir1) {
44 _contact.fdir1[0] = fdir1[0];
45 _contact.fdir1[1] = fdir1[1];
46 _contact.fdir1[2] = fdir1[2];
47}