blob: 2c10a5b4fa4f4b239242b33a37ed3bf0e792f1e2 (
plain) (
blame)
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
49
50
51
52
53
54
55
56
57
58
59
|
#include "aicollisionsolveragent.hpp"
#include "simcollision/collisionanalyserdata.hpp"
AICollisionSolverAgent::AICollisionSolverAgent()
{
EnableCollisionAnalyser();
}
AICollisionSolverAgent::~AICollisionSolverAgent()
{
DisableCollisionAnalyser();
}
// =======================================================
// PRE_COLLISION_EVENT
//
sim::Solving_Answer AICollisionSolverAgent::PreCollisionEvent(sim::Collision& inCollision, int inPass)
{
return sim::Solving_Continue;
}
// =======================================================
// COLLISION_EVENT
//
sim::Solving_Answer AICollisionSolverAgent::CollisionEvent(
sim::SimState* inSimStateA, int indexA,
sim::SimState* inSimStateB, int indexB,
const rmt::Vector& inPos, float inDvN, float inDvT)
{
return sim::Solving_Continue;
}
// =======================================================
// TEST_IMPULSE
//
sim::Solving_Answer AICollisionSolverAgent::TestImpulse(rmt::Vector& mImpulse,
sim::Collision& inCollision)
{
sim::SimState* inSimStateA = inCollision.mCollisionObjectA->GetSimState();
sim::SimState* inSimStateB = inCollision.mCollisionObjectB->GetSimState();
return sim::Solving_Continue;
}
// =======================================================
// END_OBJECT_COLLISION
//
sim::Solving_Answer AICollisionSolverAgent::EndObjectCollision(
sim::SimState* inSimState,
int inIndex)
{
return sim::Solving_Continue;
}
|