mirror of
https://github.com/bloeys/physx-go.git
synced 2025-12-29 07:58:20 +00:00
Implement onTrigger callbacks
This commit is contained in:
27
pgo/physx-c/CPxTriggerPair.h
Executable file
27
pgo/physx-c/CPxTriggerPair.h
Executable file
@ -0,0 +1,27 @@
|
||||
#ifndef CPxTriggerPair_H
|
||||
#define CPxTriggerPair_H
|
||||
|
||||
#include "CPxShape.h"
|
||||
#include "CPxPairFlag.h"
|
||||
#include "CPxRigidActor.h"
|
||||
#include "CPxTriggerPairFlag.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct CPxTriggerPair
|
||||
{
|
||||
CSTRUCT CPxShape triggerShape; //!< The shape that has been marked as a trigger.
|
||||
CSTRUCT CPxRigidActor triggerActor; //!< The actor to which triggerShape is attached
|
||||
CSTRUCT CPxShape otherShape; //!< The shape causing the trigger event. \deprecated (see #PxSimulationEventCallback::onTrigger()) If collision between trigger shapes is enabled, then this member might point to a trigger shape as well.
|
||||
CSTRUCT CPxRigidActor otherActor; //!< The actor to which otherShape is attached
|
||||
CENUM CPxPairFlag status; //!< Type of trigger event (eNOTIFY_TOUCH_FOUND or eNOTIFY_TOUCH_LOST). eNOTIFY_TOUCH_PERSISTS events are not supported.
|
||||
CENUM CPxTriggerPairFlag flags; //!< Additional information on the pair (see #PxTriggerPairFlag)
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user