VR-Forces 4.3.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
bhaveSim
modifierGroundPlatformDetectAccident.h
Go to the documentation of this file.
1
/*
2
* Copyright 2010 Autodesk, Inc. All rights reserved.
3
* Use of this software is subject to the terms of the Autodesk license agreement provided at the time of installation or download,
4
* or which otherwise accompanies this software in either electronic or hard copy form.
5
*/
6
7
8
9
13
14
#ifndef KY_DtModifierGroundPlatformDetectAccident_H
15
#define KY_DtModifierGroundPlatformDetectAccident_H
16
17
#include <
bhaveSim/bhaveSimDefines.h
>
18
#include <kyruntime/pathfinding/idetectaccident.h>
19
20
namespace
Kaim
21
{
30
class
DT_DLL_bhaveSim
DtModifierGroundPlatformDetectAccident
:
public
IDetectAccident
31
{
32
public
:
33
KY_DECLARE_DETECTACCIDENT(
DtModifierGroundPlatformDetectAccident
)
34
35
public
:
37
DtModifierGroundPlatformDetectAccident
() :
38
IDetectAccident
(),
39
m_accidentRatio(0.5f),
40
m_predictionDate(0.0f){}
41
42
virtual
void
ReInit();
43
44
virtual
KyBool DetectAccident();
45
virtual
void
Update();
46
48
KyFloat32
AccidentRatio
()
const
{
return
m_accidentRatio; }
49
54
void
AccidentRatio(KyFloat32 val)
55
{
56
KY_FUNCTION(
"DtModifierGroundPlatformDetectAccident::AccidentRatio"
);
57
KY_ASSERT(val > 0.f, (
"Invalid value (%.2f), 'AccidentRatio' must be > 0."
, val));
58
m_accidentRatio = val;
59
}
60
61
62
protected
:
63
virtual
void
OnSetPathFinder();
64
65
KyFloat32
m_accidentRatio
;
66
67
Vec3f
m_predictedPosition
;
68
KyFloat32
m_predictionDate
;
69
KyFloat32
m_straightDistToSubgoal
;
70
KyFloat32
m_coverDistToSubgoal
;
71
Vec3f
m_currentNodePosition
;
72
Vec3f
m_previousPosition
;
73
KyFloat32
m_predictedDistance
;
74
};
75
76
}
77
78
#endif
Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)