mirror of
https://github.com/bloeys/physx-go.git
synced 2025-12-29 07:58:20 +00:00
33 lines
1003 B
C
Executable File
33 lines
1003 B
C
Executable File
#ifndef CPxSceneDesc_H
|
|
#define CPxSceneDesc_H
|
|
|
|
#include "CPxTolerancesScale.h"
|
|
#include "CPxVec3.h"
|
|
#include "CPxCpuDispatcher.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct CPxSceneDesc {
|
|
void* obj;
|
|
};
|
|
|
|
typedef void (*CPxonContactCallback)(void* pairHeader);
|
|
|
|
/// <summary>
|
|
/// Creates a SceneDesc with a custom filterShader that uses word0/word1 as groups shapes can belong to, word2 as a mask on word0, and word3 as a mask on word1.
|
|
/// </summary>
|
|
/// <param name="CPxTolerancesScale"></param>
|
|
/// <returns></returns>
|
|
CPxAPI CSTRUCT CPxSceneDesc* NewCPxSceneDesc(CSTRUCT CPxTolerancesScale);
|
|
CPxAPI void CPxSceneDesc_set_gravity(CSTRUCT CPxSceneDesc*, CSTRUCT CPxVec3);
|
|
CPxAPI void CPxSceneDesc_set_cpuDispatcher(CSTRUCT CPxSceneDesc*, CSTRUCT CPxCpuDispatcher*);
|
|
CPxAPI void CPxSceneDesc_set_onContactCallback(CSTRUCT CPxSceneDesc*, CPxonContactCallback cb);
|
|
CPxAPI void FreeCPxSceneDesc(CSTRUCT CPxSceneDesc*);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif |