forked from panda3d/panda3d
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathodeContact.I
More file actions
50 lines (41 loc) · 1.3 KB
/
odeContact.I
File metadata and controls
50 lines (41 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Filename: odeContact.I
// Created by: joswilso (27Dec06)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You should have received a copy of this license along
// with this source code in a file named "LICENSE."
//
////////////////////////////////////////////////////////////////////
INLINE OdeSurfaceParameters OdeContact::
get_surface() const {
return OdeSurfaceParameters(_contact.surface);
}
INLINE OdeContactGeom OdeContact::
get_geom() {
return OdeContactGeom(_contact.geom);
}
INLINE LVecBase3f OdeContact::
get_fdir1() const {
return LVecBase3f(_contact.fdir1[0],
_contact.fdir1[1],
_contact.fdir1[2]);
}
INLINE void OdeContact::
set_surface(const OdeSurfaceParameters &surface_parameters) {
_contact.surface = *(surface_parameters.get_surface_parameters_ptr());
}
INLINE void OdeContact::
set_geom(const OdeContactGeom &contact_geom) {
_contact.geom = *(contact_geom.get_contact_geom_ptr());
}
INLINE void OdeContact::
set_fdir1(const LVecBase3f &fdir1) {
_contact.fdir1[0] = fdir1[0];
_contact.fdir1[1] = fdir1[1];
_contact.fdir1[2] = fdir1[2];
}