CommonLibVR
hkpCollisionEvent.h
Go to the documentation of this file.
1 #pragma once
2 
3 namespace RE
4 {
5  class hkpRigidBody;
6  class hkpSimpleConstraintContactMgr;
7 
9  {
10  public:
11  enum class CallbackSource
12  {
13  kSourceA = 0,
14  kSourceB = 1,
16  };
17 
18  hkpCollisionEvent(CallbackSource a_source, hkpRigidBody* a_bodyA, hkpRigidBody* a_bodyB, hkpSimpleConstraintContactMgr* a_mgr) :
19  source(a_source), contactMgr(a_mgr)
20  {
21  bodies[0] = a_bodyA;
22  bodies[1] = a_bodyB;
23  }
24 
25  // members
27  hkpRigidBody* bodies[2]; // 04
28  hkpSimpleConstraintContactMgr* contactMgr; // 14
29  private:
30  KEEP_FOR_RE()
31  };
32  static_assert(sizeof(hkpCollisionEvent) == 0x20);
33 }
#define KEEP_FOR_RE()
Definition: PCH.h:713
Definition: hkpRigidBody.h:8
Definition: AbsorbEffect.h:6
Definition: hkpCollisionEvent.h:9
hkpRigidBody * bodies[2]
Definition: hkpCollisionEvent.h:27
CallbackSource source
Definition: hkpCollisionEvent.h:26
CallbackSource
Definition: hkpCollisionEvent.h:12
hkpSimpleConstraintContactMgr * contactMgr
Definition: hkpCollisionEvent.h:28
hkpCollisionEvent(CallbackSource a_source, hkpRigidBody *a_bodyA, hkpRigidBody *a_bodyB, hkpSimpleConstraintContactMgr *a_mgr)
Definition: hkpCollisionEvent.h:18