mirror of
https://github.com/bloeys/physx-go.git
synced 2025-12-29 07:58:20 +00:00
Add funcs to set/get rigid actor user data
This commit is contained in:
@ -4,16 +4,19 @@
|
||||
#include "CPxFilterData.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
struct CPxRigidActor
|
||||
{
|
||||
void* obj;
|
||||
void *obj;
|
||||
};
|
||||
|
||||
//Sets the CPxFilterData on all the shapes of the actor.
|
||||
// Sets the CPxFilterData on all the shapes of the actor.
|
||||
CPxAPI void CPxRigidActor_setSimFilterData(CSTRUCT CPxRigidActor cra, CSTRUCT CPxFilterData cfd);
|
||||
CPxAPI void CPxRigidActor_set_userData(CSTRUCT CPxRigidActor cra, void *userData);
|
||||
CPxAPI void *CPxRigidActor_get_userData(CSTRUCT CPxRigidActor cra);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user