-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4ea2d88
commit e3ccab6
Showing
10 changed files
with
603 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
lib/hkStubs/Havok/Physics2012/Dynamics/Constraint/hkpConstraintListener.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#pragma once | ||
|
||
#include <Havok/Common/Base/Types/hkBaseTypes.h> | ||
|
||
class hkpConstraintInstance; | ||
class hkpWorld; | ||
|
||
struct hkpConstraintBrokenEvent { | ||
enum EventSource { | ||
EVENT_SOURCE_UNKNOWN, | ||
EVENT_SOURCE_BREAKABLE_CONSTRAINT, | ||
EVENT_SOURCE_FLEXIBLE_JOINT, | ||
}; | ||
|
||
hkpConstraintBrokenEvent(hkpWorld* world, hkpConstraintInstance* i, EventSource es) | ||
: m_world(world), m_constraintInstance(i), m_eventSource(es), m_eventSourceDetails(0), | ||
m_constraintBroken(true), m_actualImpulse(0.0f), m_impulseLimit(0.0f) {} | ||
|
||
hkpWorld* m_world; | ||
hkpConstraintInstance* m_constraintInstance; | ||
|
||
hkEnum<EventSource, hkUint8> m_eventSource; | ||
hkUint8 m_eventSourceDetails; | ||
hkBool m_constraintBroken; | ||
hkReal m_actualImpulse; | ||
hkReal m_impulseLimit; | ||
}; | ||
|
||
class hkpConstraintListener { | ||
public: | ||
virtual ~hkpConstraintListener() {} | ||
|
||
virtual void constraintAddedCallback(hkpConstraintInstance* constraint) {} | ||
|
||
virtual void constraintRemovedCallback(hkpConstraintInstance* constraint) {} | ||
|
||
virtual void constraintDeletedCallback(hkpConstraintInstance* constraint) {} | ||
|
||
virtual void constraintBreakingCallback(const hkpConstraintBrokenEvent& event) {} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.