TORCS
1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
Response.cpp
Go to the documentation of this file.
1
/*
2
SOLID - Software Library for Interference Detection
3
Copyright (C) 1997-1998 Gino van den Bergen
4
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Library General Public
7
License as published by the Free Software Foundation; either
8
version 2 of the License, or (at your option) any later version.
9
10
This library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Library General Public License for more details.
14
15
You should have received a copy of the GNU Library General Public
16
License along with this library; if not, write to the Free
17
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
19
Please send remarks, questions and bug reports to gino@win.tue.nl,
20
or write to:
21
Gino van den Bergen
22
Department of Mathematics and Computing Science
23
Eindhoven University of Technology
24
P.O. Box 513, 5600 MB Eindhoven, The Netherlands
25
*/
26
27
#ifdef _MSC_VER
28
#pragma warning(disable:4786)
// identifier was truncated to '255'
29
#endif
// _MSC_VER
30
31
#include "
Response.h
"
32
33
DtCollData
Response::coll_data
;
34
35
void
Response::operator()
(
DtObjectRef
a,
DtObjectRef
b,
36
const
Point
& pa,
const
Point
& pb,
37
const
Vector
& v)
const
{
38
coll_data
.point1[
X
] = pa[
X
];
39
coll_data
.point1[
Y
] = pa[
Y
];
40
coll_data
.point1[
Z
] = pa[
Z
];
41
coll_data
.point2[
X
] = pb[
X
];
42
coll_data
.point2[
Y
] = pb[
Y
];
43
coll_data
.point2[
Z
] = pb[
Z
];
44
coll_data
.normal[
X
] = v[
X
];
45
coll_data
.normal[
Y
] = v[
Y
];
46
coll_data
.normal[
Z
] = v[
Z
];
47
response
(
client_data
, a, b, &
coll_data
);
48
}
49
50
void
Response::operator()
(
DtObjectRef
a,
DtObjectRef
b)
const
{
51
response
(
client_data
, a, b, 0);
52
}
Y
@ Y
Definition
Basic.h:58
X
@ X
Definition
Basic.h:58
Z
@ Z
Definition
Basic.h:58
Response.h
Point
Definition
Point.h:34
Response::client_data
void * client_data
Definition
Response.h:44
Response::operator()
void operator()(DtObjectRef a, DtObjectRef b, const Point &pa, const Point &pb, const Vector &v) const
Definition
Response.cpp:35
Response::coll_data
static DtCollData coll_data
Definition
Response.h:40
Response::response
DtResponse response
Definition
Response.h:42
Vector
Definition
Vector.h:32
DtObjectRef
void * DtObjectRef
Definition
solid.h:39
DtCollData
Definition
solid.h:55
C:
Users
berni
Development
torcs_git
torcs-code
torcs
torcs
src
modules
simu
simuv2
SOLID-2.0
src
Response.cpp
Generated by
1.14.0