CommonLibSSE (powerof3)
hkpCollisionEvent.h
Go to the documentation of this file.
1
#pragma once
2
3
namespace
RE
4
{
5
class
hkpRigidBody;
6
class
hkpSimpleConstraintContactMgr;
7
8
struct
hkpCollisionEvent
9
{
10
public
:
11
enum class
CallbackSource
12
{
13
kSourceA
= 0,
14
kSourceB
= 1,
15
kSourceWorld
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
26
CallbackSource
source
;
// 00
27
hkpRigidBody
*
bodies
[2];
// 04
28
hkpSimpleConstraintContactMgr*
contactMgr
;
// 14
29
};
30
static_assert(
sizeof
(
hkpCollisionEvent
) == 0x20);
31
}
RE::hkpRigidBody
Definition:
hkpRigidBody.h:8
RE
Definition:
AbsorbEffect.h:6
RE::hkpCollisionEvent
Definition:
hkpCollisionEvent.h:9
RE::hkpCollisionEvent::bodies
hkpRigidBody * bodies[2]
Definition:
hkpCollisionEvent.h:27
RE::hkpCollisionEvent::source
CallbackSource source
Definition:
hkpCollisionEvent.h:26
RE::hkpCollisionEvent::CallbackSource
CallbackSource
Definition:
hkpCollisionEvent.h:12
RE::hkpCollisionEvent::CallbackSource::kSourceA
@ kSourceA
RE::hkpCollisionEvent::CallbackSource::kSourceWorld
@ kSourceWorld
RE::hkpCollisionEvent::CallbackSource::kSourceB
@ kSourceB
RE::hkpCollisionEvent::contactMgr
hkpSimpleConstraintContactMgr * contactMgr
Definition:
hkpCollisionEvent.h:28
RE::hkpCollisionEvent::hkpCollisionEvent
hkpCollisionEvent(CallbackSource a_source, hkpRigidBody *a_bodyA, hkpRigidBody *a_bodyB, hkpSimpleConstraintContactMgr *a_mgr)
Definition:
hkpCollisionEvent.h:18
CommonLibSSE
include
RE
H
hkpCollisionEvent.h
Generated by
1.9.1